vLLM: /v1/systemone ignores the chat template trust gate
vLLM's /v1/systemone endpoint accepted request-supplied chat templates even when the server was configured to refuse them.
· vLLM · Research by Haile Du (Beijing Academy of Artificial Intelligence), Yuan Luo (Beijing Academy of Artificial Intelligence)
vLLM's POST /v1/systemone endpoint passed request-supplied chat_template_kwargs to the shared renderer without running the template trust check, so a caller could replace the system block an operator pinned. Fixed in 0.34.0.
01What happened
The vLLM project published advisory GHSA-xgh8-qwjh-q853 on 18 November 2026, crediting Haile Du and Yuan Luo of the Beijing Academy of Artificial Intelligence. The fix shipped the same week in vLLM 0.34.0, whose release notes list the endpoint change under both Security and breaking changes. No CVE id has been assigned.
02How it works
vLLM gates request-supplied chat templates behind the --trust-request-chat-template flag, and validate_chat_template() enforces that gate. The check runs only inside the render_chat and render_responses callers, while the structured-decisions path reaches the shared preprocess_chat() function directly and skips it. A caller who can reach the endpoint therefore controls how the conversation is serialized: the system block an operator pinned with --chat-template can be replaced, and special tokens or turn boundaries that message-level validation would reject can be inserted. The advisory classifies the result as a protection-mechanism bypass and makes no claim of a Jinja sandbox escape or resource exhaustion.
03Who is affected
vLLM 0.32.0rc0 through 0.33.0 are affected in their default configuration, with no flag required. Only models in the server's READ_STRATEGIES list respond, and the advisory names Qwen3ForCausalLM and Lfm2VlForConditionalGeneration as examples; other architectures return 501. The endpoint sits behind API-key protection, so the caller needs whatever credential the server requires.
04What to do
Upgrade vLLM to 0.34.0, where the endpoint honours the trust flag and rejects request-supplied chat templates unless --trust-request-chat-template is set. Until then, treat anyone holding an API key for an affected server as able to rewrite the pinned system prompt, and review which models in READ_STRATEGIES the server exposes.
Questions people ask
- Which vLLM versions need updating for the /v1/systemone trust gate bypass?
- The advisory's description puts the affected range at vLLM 0.32.0rc0 through 0.33.0 and names 0.34.0 as the fix, while the advisory's structured metadata field reads 0.32.0rc0 to 0.34.0 inclusive. Those two statements disagree. The 0.34.0 release notes list the endpoint fix under Security, so upgrading to 0.34.0 or later is the safe reading.
- Can an anonymous caller exploit the vLLM /v1/systemone endpoint?
- No. The vLLM advisory lists /v1/systemone among the endpoints covered by API-key protection, and the CVSS vector records low privileges required rather than none. A caller still needs whatever credential the server demands. The endpoint is registered unconditionally, though, so no non-default flag is needed once a caller is authenticated.
- Does the vLLM chat template flaw allow remote code execution?
- No. The vLLM advisory explicitly declines to claim a Jinja sandbox escape, and it also declines to claim CPU or memory exhaustion because a 30-second render timeout applies. The stated impact is integrity only: a caller can change how the conversation is serialized, replace the pinned system block, and insert special tokens or turn boundaries.
Sources 3 links, all fetched
- 1github.comvLLM Advisory
- 2github.comvLLM 0.34.0 Release
- 3github.comFix Pull Request