The vLLM trust gate failed at the request boundary
A vLLM flaw let remote clients supply chat templates that the server rendered as Jinja. The 0.14.1 fix makes that behavior opt in, offering a clear lesson about treating inference request fields as executable configuration.
The vLLM trust gate failed at the request boundary
A model serving endpoint can expose more than a model. In vLLM versions before 0.14.1, a client could send its own chat template to the OpenAI compatible server, and the server could evaluate that Jinja template inside the vLLM process. The project has now changed the default: request supplied templates are rejected unless the operator explicitly enables --trust-request-chat-template. The advisory describes the issue as an unauthenticated remote code execution risk for reachable deployments, with a high severity score of 9.1 (vLLM security advisory).
That detail matters because it is easy to put the wrong boundary around an inference API. Teams often treat the prompt as data, then treat the request envelope as trusted plumbing. In this case, the request envelope carried a small program. The dangerous part was not a strange model output. It was a server side decision to accept executable template text from the caller.
The fix is a useful security lesson beyond vLLM. When an API accepts a field that changes how later input is parsed or rendered, that field belongs in the threat model even when the endpoint is marketed as a text generation service. The patch did not remove customization altogether. It changed customization from an implicit default into an operator decision.
The field that changed the trust model
Chat templates define how a list of messages becomes the text that a model receives. A client may provide a system message, user message, and assistant history. The template decides how those roles are arranged, which control tokens are inserted, and how the final prompt is formatted. vLLM uses Jinja based templates for this work, as described in its documentation for online serving and chat completion requests (vLLM online serving documentation).
A normal client request therefore looks like ordinary JSON, but the server does more than copy the values into a prompt. It selects or receives a template, renders that template with message data, and then passes the resulting text to the model. The template is an instruction for a rendering engine. It is not equivalent to a user sentence.
The vLLM advisory says that affected releases allowed a remote unauthenticated user to pass a custom chat template through the API. The same advisory explains that the template could execute Jinja expressions in the server process (vLLM security advisory). That is the important sequence: remote input reached a template interpreter, and the interpreter ran with the privileges of the vLLM service.
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Nov 30, 2026 / Jahan
Illustration of the request path discussed in the vLLM advisory. It shows why a chat template is a code execution boundary, not only prompt data.
The advisory does not say that every vLLM deployment was exploitable in the same way. Exposure depended on the server accepting requests from an attacker and on the relevant serving configuration. The report does establish the vulnerable behavior in the affected versions, however, and it is enough to treat an internet reachable or broadly reachable endpoint as a serious incident response question rather than a routine model configuration issue (vLLM security advisory).
Why the server accepted it in the first place
There is a reasonable product argument for allowing a request to supply a template. Different models use different prompt formats, and an OpenAI compatible server may sit in front of more than one model family. A caller that knows the model's expected format can ask the server to use a matching template without restarting the service.
That convenience turns the template field into a policy control. It can change the interpretation of every message in the request. If the template language supports expressions, filters, attribute access, or other execution features, the caller is not merely choosing presentation. The caller is selecting code that will run before inference.
The security boundary becomes especially easy to miss when the request field is described as a string. JSON strings are often treated as passive data because they do not look like shell commands or source files. That classification is wrong whenever the application passes the string to a parser or interpreter. A string that reaches Jinja, SQL, a regular expression engine with dangerous features, a shell, or a deserializer can have a very different risk profile from a string that is stored and displayed.
The vLLM case also shows why a model serving stack needs a field level threat model. The model itself may be isolated from the host, but the preprocessing path can run in the main server process. A request can therefore cross from the network into a rendering engine before any model sandbox, GPU worker boundary, or output filter becomes relevant. The vulnerability is in the control plane around inference, not in the model's learned behavior.
The upstream patch reflects that distinction. The vLLM pull request for the fix makes request supplied chat templates opt in through --trust-request-chat-template and otherwise rejects them by default (upstream vLLM fix). That is a small configuration change with a large security meaning. Operators who want the flexibility can still accept the field, but they must acknowledge that they are trusting clients to provide template code.
What changed in 0.14.1
The project identifies 0.14.1 as the fixed version in the advisory and the related pull request (vLLM security advisory; upstream vLLM fix). The default behavior after the fix is not “sanitize every template until it is safe.” It is more conservative. The server refuses the request supplied template unless the operator turns on the explicit trust option.
That choice matters because sanitization is difficult to reason about when the input language is designed to express logic. A blacklist may block one obvious access path while leaving another available through a different object, filter, or syntax form. An allowlist can reduce the language, but proving that the remaining subset is safe requires a specification, tests, and careful review of every object exposed to the renderer.
A default deny gate avoids making every deployment depend on that proof. The operator can use the built in or configured template path without granting clients the ability to replace it. If a deployment truly needs client supplied templates, the flag makes that decision visible in startup configuration, deployment review, and incident response records.
Illustration. Illustrative comparison of the default request template behavior before and after vLLM 0.14.1. This is a conceptual diagram, not a captured server response.
The fix does not mean that all vLLM servers are safe simply because they run a release containing the patch. The advisory covers this specific request template path. A deployment can still expose other administrative functions, run with excessive host permissions, publish an unauthenticated endpoint, or load untrusted model and tokenizer assets. The security documentation's broader guidance is relevant here because the serving process remains a network facing application, not a sealed appliance (vLLM security guidance).
The operational question is exposure, not only version
The first question for an operator is whether a vLLM process accepted remote requests during the affected period. The answer may be hidden behind an API gateway, a load balancer, a notebook platform, or an internal service mesh. An endpoint does not need to be public on the internet to be reachable by an untrusted tenant, a compromised workload, or a user who can submit arbitrary OpenAI compatible requests.
The second question is whether the deployment used an affected vLLM release. Version inventory should include container image digests, Python package locks, Helm values, and the actual process command line. A repository manifest that says “latest” is not a reliable record of what was running during an incident window. The advisory identifies releases before 0.14.1 as affected, so an operator should compare the running artifact against that boundary rather than relying on a package manager's current resolution (vLLM security advisory).
The third question is whether request supplied chat templates were accepted. Logs, gateway traces, and request schemas can help answer that without sending exploit strings. Look for requests containing the chat template field, server startup arguments containing --trust-request-chat-template, and application code that forwards arbitrary client JSON into the vLLM request. The goal is to establish exposure and scope, not to test a production endpoint with a payload.
If the service was reachable and the affected behavior was enabled, patching is necessary but may not close the whole response. A remote code execution issue changes the investigation from “did a user receive a bad completion?” to “what could the serving process access?” The answer depends on the container identity, mounted files, cloud credentials, network routes, service account permissions, model cache contents, and neighboring workloads.
The vLLM documentation describes the online server as an OpenAI compatible API. That compatibility is useful for clients, but it also means generic tooling may send fields that a deployment owner did not expect. Gateways should enforce an explicit request schema and remove fields that the service does not need. Authentication should happen before expensive preprocessing, and authorization should distinguish ordinary completion from configuration changing features (vLLM online serving documentation).
A safer deployment pattern
A production deployment should use a known template selected by the service owner whenever the model and application contract are stable. Clients can send messages and generation parameters, while the server keeps the rendering policy in configuration or in a reviewed model package. This reduces per request flexibility, but it also makes the prompt construction path easier to audit and reproduce.
When multiple models require different templates, routing is safer when the model choice maps to a server side template selected from a fixed registry. The client can request an approved model identifier. It should not be able to replace the renderer with arbitrary template text unless that capability is an explicit, isolated service feature.
Some teams may still need dynamic templates for research or controlled evaluation. The new flag exists for that use case, but enabling it should come with containment. The service should run under a dedicated unprivileged account, use a read only filesystem where possible, keep cloud credentials out of the process environment, restrict egress, and separate evaluation infrastructure from production workloads. These measures do not make untrusted template execution harmless. They reduce the damage if the trust decision is wrong.
The security documentation is also a reminder to treat model serving configuration as part of the application security review (vLLM security guidance). A review that covers only authentication and prompt injection can miss template engines, tokenizer files, model downloaders, plugin loaders, and metrics endpoints. The common thread is that the inference server performs substantial work before and after the model call. Every one of those steps may parse or interpret attacker controlled data.
What the evidence does not show
The vLLM advisory establishes the affected versions, the request path, the server side Jinja execution behavior, the fixed version, and the explicit trust flag (vLLM security advisory). The pull request records the implementation direction and the change in default behavior (upstream vLLM fix). Those sources do not establish that a named customer, public cloud service, or internet host was compromised.
There is also no basis here for claiming that a particular model caused the problem. The risk comes from the serving application's handling of a request supplied template. Changing the model may alter the expected prompt format, but it does not turn an untrusted template into trusted data.
That distinction is important for incident reports. A vulnerable release is evidence of potential exposure. It is not evidence of exploitation. An endpoint log showing a custom template field is evidence that the path was used. It is not, by itself, evidence that the template achieved code execution. The investigation needs separate evidence for execution, persistence, access to secrets, lateral movement, and data access.
The practical lesson is narrower and more useful than a claim about an industry wide crisis. vLLM had a feature that let the caller influence a code executing stage of request processing. The project changed the default so that the feature requires an explicit trust decision. Operators should make the same decision consciously, record it, and isolate the process when flexibility is worth the risk.