vLLM: Responses API bypasses trust_request_chat_template for chat_template_kwargs
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| vllm-projectvllm | — | Not listed |
| pipvllm |
< 0.32.0→ 0.32.0 |
0.32.0 |
| PyPIvllm |
≥ 0.16.0, < 0.32.0→ 0.32.0 |
0.32.0 |
Original description The description as published by the source.
vLLM is an inference and serving engine for large language models. From 0.16.0 until 0.32.0, the /v1/responses endpoint allows an authenticated caller to place an attacker-controlled template in chat_template_kwargs[chat_template] when no server template is configured. ChatParams.get_apply_chat_template_kwargs() preserves that value without enforcing trust_request_chat_template, so the request can bypass the intended trust policy and cause CPU or memory exhaustion through Jinja rendering. This issue is fixed in version 0.32.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com