6.5medium
vLLM vulnerable to DoS via large Chat Completion or Tokenization requests with specially crafted `chat_template_kwargs`
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.66% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-69j4-grxj-j64pPYSEC-2026-2012
Description
vLLM is an inference and serving engine for large language models (LLMs). From version 0.5.5 to before 0.11.1, the /v1/chat/completions and /tokenize endpoints allow a chat_template_kwargs request parameter that is used in the code before it is properly validated against the chat template. With the right chat_template_kwargs parameters, it is possible to block processing of the API server for long periods of time, delaying all other requests. This issue has been patched in version 0.11.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vllm-project vllm | >= 0.5.5, < 0.11.1 | CVE List |
| vllm (PyPI) | from 0.5.5 before 0.11.1 | GitHub Advisory Database, PyPA Advisory Database |
| vllm vllm | from 0.5.5 before 0.11.1, 0.11.1 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
vLLM is an inference and serving engine for large language models (LLMs). From version 0.5.5 to before 0.11.1, the /v1/chat/completions and /tokenize endpoints allow a chat_template_kwargs request parameter that is used in the code before it is properly validated against the chat template. With the right chat_template_kwargs parameters, it is possible to block processing of the API server for long periods of time, delaying all other requests. This issue has been patched in version 0.11.1.
GitHub Advisory Database
Summary
The /v1/chat/completions and /tokenize endpoints allow a chat_template_kwargs request parameter that is used in the code before it is properly validated against the chat template. With the right chat_template_kwargs parameters, it is possible to block processing of the API server for long periods of time, delaying all other requests
Details
In serving_engine.py, the chat_template_kwargs are unpacked into kwargs passed to chat_utils.py apply_hf_chat_template with no validation on the keys or values in that chat_template_kwargs dict. This means they can be used to override optional parameters in the apply_hf_chat_template method, such as tokenize, changing its default from False to True.
Both serving_chat.py and serving_tokenization.py call into this _preprocess_chat method of serving_engine.py and they both pass in chat_template_kwargs.
So, a chat_template_kwargs like {"tokenize": True} makes tokenization happen as part of applying the chat template, even though that is not expected. Tokenization is a blocking operation, and with sufficiently large input can block the API server's event loop, which blocks handling of all other requests until this tokenization is complete.
This optional tokenize parameter to apply_hf_chat_template does not appear to be used, so one option would be to just hard-code that to always be False instead of allowing it to be optionally overridden by callers. A better option may be to not pass chat_template_kwargs as unpacked kwargs but instead as a dict, and only unpack them after the logic in apply_hf_chat_template that resolves the kwargs against the chat template.
Impact
Any authenticated user can cause a denial of service to a vLLM server with Chat Completion or Tokenize requests.
Fix
NVD (es)
vLLM es un motor de inferencia y servicio para modelos de lenguaje grandes (LLMs). Desde la versión 0.5.5 hasta antes de la 0.11.1, los endpoints /v1/chat/completions y /tokenize permiten un parámetro de solicitud chat_template_kwargs que se utiliza en el código antes de que sea validado correctamente contra la plantilla de chat. Con los parámetros chat_template_kwargs correctos, es posible bloquear el procesamiento del servidor API durante largos períodos de tiempo, retrasando todas las demás solicitudes. Este problema ha sido parcheado en la versión 0.11.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62426 changed 2025-11-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-69j4-grxj-j64p changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-62426 changed 2026-10-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2012 changed 2026-07-07 | CC-BY-4.0 |