vllm
Affected
- introduced
0, fixed0.32.0(ecosystem)
Fixed versions
0.32.0
Fix
- Fixed version
0.32.0pip install --upgrade vllm==0.32.0
Advisory
Also known as: CVE-2026-115917, PYSEC-2026-4348
vLLM: Permissive default CORS origins allow cross-origin requests to the vLLM HTTP server
Summary
The OpenAI-compatible server registers Starlette CORSMiddleware withallowed_origins defaulting to ["*"], and performs no authentication unless--api-key (or VLLM_API_KEY) is configured. A web page on any origin can send
requests to a vLLM server that the victim's browser can reach (for examplelocalhost or an internal/VPN address) and read the responses. The defaultallow_credentials=False blocks cookie-bearing cross-origin requests; because
vLLM authenticates with a bearer header rather than cookies, the wildcard still
permits untokenized access to an unauthenticated server and read access when the
caller already holds a token.
Details
Affected components
vllm/entrypoints/launchers/cli_args.py - allowed_origins default value.vllm/entrypoints/serve/middleware/register.py - CORSMiddleware registration.vllm/entrypoints/serve/middleware/authenticate.py - auth middleware and its guarded path prefixes.Root cause
vllm/entrypoints/launchers/cli_args.py:
allow_credentials: bool = False
"""Allow credentials."""
allowed_origins: list[str] = field(default_factory=lambda: ["*"])
"""Allowed origins."""
vllm/entrypoints/serve/middleware/register.py:
app.add_middleware(
CORSMiddleware,
allow_origins=args.allowed_origins,
allow_credentials=args.allow_credentials,
allow_methods=args.allowed_methods,
allow_headers=args.allowed_headers,
)
The auth middleware is added only when a token is configured and guards only the/v1, /v2, /inference, and /cohere prefixes. /v1/load_lora_adapter and/v1/unload_lora_adapter are inside /v1 and therefore do require a key when
one is set; they are open only when no key is configured and dynamic LoRA
updating is enabled.
Impact
GET /v1/models), issue POST /v1/chat/completions, consume GPU time, and read model output through the victim's browser.allow_credentials=False, cookie-based CSRF does not apply; the exposure is cross-origin request execution and response disclosure.This advisory was fixed in MR61009.
Low Basis: The source's own band: LOW
0, fixed 0.32.0 (ecosystem)0.32.0
0.32.0pip install --upgrade vllm==0.32.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0