CVE-2026-24779: vLLM vulnerable to Server-Side Request Forgery (SSRF) in `MediaConnector`
Summary A Server-Side Request Forgery (SSRF) vulnerability exists in the MediaConnector class within the vLLM project's multimodal feature set. The loadfromurl and loadfromurlasync methods obtain and process media from URLs provided by users, using different Python parsing libraries when restricting the target host. These two parsing libraries have different interpretations of backslashes, which allows the host name restriction to be bypassed. This allows an attacker to coerce the vLLM server into making arbitrary requests to internal network resources.
This vulnerability is particularly critical in containerized environments like llm-d, where a compromised vLLM pod could be used to scan the internal network, interact with other pods, and potentially cause Denial of Service or access sensitive data. For example, an attacker could make the vLLM pod send malicious requests to an internal llm-d management endpoint, leading to system instability by falsely reporting metrics like the KV cache state.
Details The core of the vulnerability lies in the MediaConnector.loadfromurl method and its asynchronous counterpart. These methods accept a URL string to fetch media content (images, audio, video).
> def loadfromurl( > self, > url: str, > mediaio: MediaIO[M], > , > fetchtimeout: int | None = None, > ) -> M: # type: ignore[type-var] > urlspec = urlparse(url) > > if urlspec.scheme.startswith("http"): > self.asserturlinallowedmediadomains(urlspec) > > connection = self.connection > data = connection.getbytes( > url, > timeout=fetchtimeout, > allowredirects=envs.VLLMMEDIAURLALLOWREDIRECTS, > ) > > return mediaio.loadbytes(data)
The URL validation uses the urlparse function from Python's urllib module, while the request is made using the request function from Python's requests module. The requests module's underlying URL parsing is implemented using the parseurl function from Python's urllib3. These two parsing functions follow different URL specifications; one is implemented according to the RFC 3986 specification, and the other is implemented according to the WHATWG Living Standard. There is a difference in how the two functions handle backslashes (\) in URLs, which allows the hostname restriction to be bypassed.
Fix
https://github.com/vllm-project/vllm/pull/32746
Other sources
vLLM is an inference and serving engine for large language models (LLMs). Prior to version 0.14.1, a Server-Side Request Forgery (SSRF) vulnerability exists in the MediaConnector class within the vLLM project's multimodal feature set. The loadfromurl and loadfromurlasync methods obtain and process media from URLs provided by users, using different Python parsing libraries when restricting the target host. These two parsing libraries have different interpretations of backslashes, which allows the host name restriction to be bypassed. This allows an attacker to coerce the vLLM server into making arbitrary requests to internal network resources. This vulnerability is particularly critical in containerized environments like llm-d, where a compromised vLLM pod could be used to scan the internal network, interact with other pods, and potentially cause denial of service or access sensitive data. For example, an attacker could make the vLLM pod send malicious requests to an internal llm-d management endpoint, leading to system instability by falsely reporting metrics like the KV cache state. Version 0.14.1 contains a patch for the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/vllmto a version that resolves this vulnerability.Fixed in 0.14.1 - Upgrade
Upgrade
vllmto a version that resolves this vulnerability.Fixed in 0.14.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-24779?
CVE-2026-24779 is classified as a medium severity Server-Side Request Forgery (SSRF) vulnerability.
How do I fix CVE-2026-24779?
To fix CVE-2026-24779, upgrade vLLM to version 0.14.1 or later.
What component is affected by CVE-2026-24779?
CVE-2026-24779 affects the `MediaConnector` class within the vLLM framework.
What kind of vulnerability is CVE-2026-24779?
CVE-2026-24779 is a Server-Side Request Forgery (SSRF) vulnerability.
Which versions of vLLM are affected by CVE-2026-24779?
Versions of vLLM prior to 0.14.1 are affected by CVE-2026-24779.