GHSA-542m-9234-8gvf: vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
notable signal 40 vllm
OSV advisory GHSA-542m-9234-8gvf (medium, pypi:vllm): chat templates are rendered by passing resolved Jinja2 source to tokenizer.apply_chat_template() in an ImmutableSandboxedEnvironment with no wall-clock timeout, output-size cap or loop/binop limit, inside a ThreadPoolExecutor whose max_workers defaults to 1. A single short authenticated template can permanently wedge all chat-style endpoints for every tenant until restart; a string-multiplication variant OOM-kills the process. Works in default vllm serve config via the /v1/responses gate omission.
Action: Set an explicit --chat-template, keep trust_request_chat_template=False, restrict who can reach chat endpoints, and track the upstream renderer timeout/limit fix.
Migration effort: low
Entities: vllm
Facts
GHSA-542m-9234-8gvf · medium · pypi:vllm
Cited
GHSA-542m-9234-8gvf: vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool osv · official · 2026-10-28