VDB
Sign up
MEDIUM6.5

PYSEC-2026-4349

Quick fix

PYSEC-2026-4349 — vllm: upgrade to the fixed version with the command below.

pip install --upgrade 'vllm>=0.32.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vllm
Introduced in: 0.16.0Fixed in: 0.32.0
Fixpip install --upgrade 'vllm>=0.32.0'

References