vLLM: Permissive default CORS origins allow cross-origin requests to the vLLM HTTP server
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| vllm-projectvllm | — | Not listed |
| pipvllm |
< 0.32.0→ 0.32.0 |
0.32.0 |
| PyPIvllm |
< 0.32.0→ 0.32.0 |
0.32.0 |
Original description The description as published by the source.
vLLM is an inference and serving engine for large language models. Prior to 0.32.0, the OpenAI-compatible server configures Starlette CORSMiddleware with allowed_origins set to a wildcard by default. A malicious web page can use a victim's browser to reach an unauthenticated vLLM server on localhost, an internal network, or a VPN, call endpoints including GET /v1/models and POST /v1/chat/completions, consume GPU resources, and read responses. Cookie-based cross-site request forgery does not apply because credentials are disabled by default, and deployments requiring bearer authentication are exposed only when the caller already has a usable token. This issue is fixed in version 0.32.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com