CVE-2026-34753: vLLM: Server-Side Request Forgery (SSRF) in `download_bytes_from_url `
vLLM 0.16.0 up to 0.18.x has a server-side request forgery in the batch runner. Anyone who controls the batch input file can set `file_url` in a transcription or translation request and make the vLLM host fetch any HTTP or HTTPS address, including internal services. Fixed in 0.19.0.
Published Apr 3, 2026 · Updated Jul 17, 2026 · Analysis Oct 30, 2026
What an attacker can do
The batch runner in vllm/entrypoints/openai/run_batch.py reads a JSON line per request. For the audio transcription and translation endpoints, each line carries a file_url. The function download_bytes_from_url takes that string and passes it straight to an aiohttp session. It checks the scheme but not the host, IP, port or redirect target.
The project's multimodal media path already has a domain allowlist, but this function did not use it. A batch file can therefore point file_url at a cloud metadata address or an internal HTTP API. The vLLM host makes the request from inside the network, and the response is processed as audio, so errors and outputs can leak some of what the target returned.
The attacker must be able to supply the batch input, which the CVSS vector records as low privileges. The rating is medium: low confidentiality and availability impact. On a cloud host, the usual target is the instance metadata service, which may hand out credentials.
Who is affected
The pip package vllm, versions 0.16.0 up to but not including 0.19.0. The path is used only when you run the batch runner with transcription or translation requests, and when someone other than you can influence the batch input file. Check the version:
pip show vllmvllm
- Ecosystem
- PyPI
- Affected
- >= 0.16.0, < 0.19.0
- Fixed in
- 0.19.0
- Check
pip show vllm
How to fix it
Upgrade to vllm 0.19.0.
pip install --upgrade "vllm>=0.19.0"The fix in pull request 38482 makes download_bytes_from_url check the URL hostname against the --allowed-media-domains list before any request. It uses the same URL parser as the media connector, rejects unsupported schemes, and follows redirects only when VLLM_MEDIA_URL_ALLOW_REDIRECTS allows it. If no allowlist is configured, behavior is unchanged, so set --allowed-media-domains explicitly. A review comment on the pull request notes that an empty list is permissive.
How to tell if you were hit
Review batch input files for file_url values that point at private addresses, loopback, link-local addresses such as the cloud metadata IP, or hosts you do not recognise. Check egress logs and cloud metadata access logs from the vLLM host for requests that match batch run times. In vLLM logs, look for "Failed to download data from URL" errors that name internal URLs.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
A Server Side Request Forgery (SSRF) vulnerability in download_bytes_from_url allows any actor who can control batch input JSON to make the vLLM batch runner issue arbitrary HTTP/HTTPS requests from the server, without any URL validation or domain restrictions.
This can be used to target internal services (e.g. cloud metadata endpoints or internal HTTP APIs) reachable from the vLLM host.
------
Details
Vulnerable component
The vulnerable logic is in the batch runner entrypoint vllm/entrypoints/openai/run_batch.py, function download_bytes_from_url:
# run_batch.py Lines 442-482
async def download_bytes_from_url(url: str) -> bytes:
"""
Download data from a URL or decode from a data URL.
Args:
url: Either an HTTP/HTTPS URL or a data URL (data:...;base64,...)
Returns:
Data as bytes
"""
parsed = urlparse(url)
# Handle data URLs (base64 encoded)
if parsed.scheme == "data":
# Format: data:...;base64,<base64_data>
if "," in url:
header, data = url.split(",", 1)
if "base64" in header:
return base64.b64decode(data)
else:
raise ValueError(f"Unsupported data URL encoding: {header}")
else:
raise ValueError(f"Invalid data URL format: {url}")
# Handle HTTP/HTTPS URLs
elif parsed.scheme in ("http", "https"):
async with (
aiohttp.ClientSession() as session,
session.get(url) as resp,
):
if resp.status != 200:
raise Exception(
f"Failed to download data from URL: {url}. Status: {resp.status}"
)
return await resp.read()
else:
raise ValueError(
f"Unsupported URL scheme: {parsed.scheme}. "
"Supported schemes: http, https, data"
)Key properties:
- The function only parses the URL to dispatch on the scheme (
data,http,https). - For
http/https, it directly callssession.get(url)on the provided string. - There is no validation of:
- hostname or IP address,
- whether the target is internal or external,
- port number,
- path, query, or redirect target.
- This is in contrast to the multimodal media path (
MediaConnector), which implements an explicit domain allowlist.download_bytes_from_urldoes not reuse that protection.
URL controllability
The url argument is fully controlled by batch input JSON via the file_url field of BatchTranscriptionRequest / BatchTranslationRequest.
- Batch request body type:
# run_batch.py Line 67-80
class BatchTranscriptionRequest(TranscriptionRequest):
"""
Batch transcription request that uses file_url instead of file.
This class extends TranscriptionRequest but replaces the file field
with file_url to support batch processing from audio files written in JSON format.
"""
file_url: str = Field(
...,
description=(
"Either a URL of the audio or a data URL with base64 encoded audio data. "
),
)# run_batch.py Line 98-111
class BatchTranslationRequest(TranslationRequest):
"""
Batch translation request that uses file_url instead of file.
This class extends TranslationRequest but replaces the file field
with file_url to support batch processing from audio files written in JSON format.
"""
file_url: str = Field(
...,
description=(
"Either a URL of the audio or a data URL with base64 encoded audio data. "
),
)There is no restriction on the domain, IP, or port of file_url in these models.
- Batch input is parsed directly from the batch file:
# run_batch.py Line 139-179
class BatchRequestInput(OpenAIBaseModel):
...
url: str
body: BatchRequestInputBody
@field_validator("body", mode="plain")
@classmethod
def check_type_for_url(cls, value: Any, info: ValidationInfo):
url: str = info.data["url"]
...
if url == "/v1/audio/transcriptions":
return BatchTranscriptionRequest.model_validate(value)
if url == "/v1/audio/translations":
return BatchTranslationRequest.model_validate(value)# run_batch.py Line 770-781
logger.info("Reading batch from %s...", args.input_file)
# Submit all requests in the file to the engine "concurrently".
response_futures: list[Awaitable[BatchRequestOutput]] = []
for request_json in (await read_file(args.input_file)).strip().split("\n"):
# Skip empty lines.
request_json = request_json.strip()
if not request_json:
continue
request = BatchRequestInput.model_validate_json(request_json)The batch runner reads each line of the input file (args.input_file), parses it as JSON, and constructs a BatchTranscriptionRequest / BatchTranslationRequest. Whatever file_url appears in that JSON line becomes batch_request_body.file_url.
file_urlis passed directly intodownload_bytes_from_url:
# run_batch.py Line 610-623
def wrapper(handler_fn: Callable):
async def transcription_wrapper(
batch_request_body: (BatchTranscriptionRequest | BatchTranslationRequest),
) -> (
TranscriptionResponse
| TranscriptionResponseVerbose
| TranslationResponse
| TranslationResponseVerbose
| ErrorResponse
):
try:
# Download data from URL
audio_data = await download_bytes_from_url(batch_request_body.file_url)So the data flow is:
- Attacker supplies JSON line in the batch input file with arbitrary
body.file_url. BatchRequestInput/BatchTranscriptionRequest/BatchTranslationRequestparse that JSON and storefile_urlverbatim.make_transcription_wrappercallsdownload_bytes_from_url(batch_request_body.file_url).download_bytes_from_url’s HTTP/HTTPS branch issuesaiohttp.ClientSession().get(url)to that attacker-controlled URL with no further validation.
This is a classic SSRF pattern: a server-side component makes arbitrary HTTP requests to a URL string taken from untrusted input.
Comparison with safer code
The project already contains a safer URL-handling path for multimodal media in vllm/multimodal/media/connector.py, which demonstrates the intent to mitigate SSRF via domain allowlists and URL normalization:
# connector.py Lines 169-189
def load_from_url(
self,
url: str,
media_io: MediaIO[_M],
*,
fetch_timeout: int | None = None,
) -> _M: # type: ignore[type-var]
url_spec = parse_url(url)
if url_spec.scheme and url_spec.scheme.startswith("http"):
self._assert_url_in_allowed_media_domains(url_spec)
connection = self.connection
data = connection.get_bytes(
url_spec.url,
timeout=fetch_timeout,
allow_redirects=envs.VLLM_MEDIA_URL_ALLOW_REDIRECTS,
)
return media_io.load_bytes(data)and:
# connector.py Lines 158-167
def _assert_url_in_allowed_media_domains(self, url_spec: Url) -> None:
if (
self.allowed_media_domains
and url_spec.hostname not in self.allowed_media_domains
):
raise ValueError(
f"The URL must be from one of the allowed domains: "
f"{self.allowed_media_domains}. Input URL domain: "
f"{url_spec.hostname}"
)download_bytes_from_url does not reuse this allowlist or any equivalent validation, even though it also fetches user-provided URLs.
Credited to Fushuling, L2ncE, TsingShui, l2yyd5, Danthology, iharee, BoyiZhao, russellb, jperezdealgaba, Victor-code-Y.
Questions
- Which vLLM versions are affected by this SSRF?
0.16.0 up to but not including 0.19.0. Version 0.19.0 contains the fix.
- Does the OpenAI-compatible API server expose this?
The advisory concerns the batch runner entrypoint, run_batch.py, and its
file_urlfield for audio transcription and translation. It does not describe the live API server as affected.- Does upgrading alone block the SSRF?
No. The fix checks hostnames against
--allowed-media-domains, and with no allowlist configured the behavior is unchanged. Set the list when you upgrade.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-pf3h-qjgv-vcpr
- https://github.com/vllm-project/vllm/commit/57861ae48d3493fa48b4d7d830b7ec9f995783e7
- https://nvd.nist.gov/vuln/detail/CVE-2026-34753
- https://github.com/advisories/GHSA-pf3h-qjgv-vcpr
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-3410.yaml
- https://github.com/vllm-project/vllm
- https://pypi.org/project/vllm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More vLLM vulnerabilities
All vLLM entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
