Description
A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of the argument spec_path causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure.
Published: 2026-06-21
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

BerriAI litellm, up to version 1.82.2, contains a flaw in the load_openapi_spec_async function used by the MCP OpenAPI Spec Loader. The function accepts a spec_path argument without adequate validation, enabling an attacker to supply a target URL and force the server to perform an outbound HTTP request. This server‑side request forgery can be used to reach internal or external systems, exfiltrate data, or facilitate further attacks such as credential harvesting. The vulnerability does not grant direct code execution, but it can be leveraged to discover exposed services or trigger downstream exploits via forged requests.

Affected Systems

The affected component is BerriAI litellm, versions up to 1.82.2. No specific patch version is listed, but the vulnerability pertains to all releases of that product without an updated fix. Vendors and users should verify whether a newer release is available and apply it.

Risk and Exploitability

The CVSS score of 5.3 represents moderate severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. Since the flaw can be triggered remotely by supplying a crafted spec_path, the attack vector is external. Publicly available proof‑of‑concept code exists, suggesting that exploitation is feasible. Overall, the risk is moderate, with potential for significant impact if the server is used as a pivot point in a larger attack chain.

Generated by OpenCVE AI on June 21, 2026 at 16:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BerriAI litellm to a patched version that fixes the SSRF in load_openapi_spec_async.
  • If a patch is not yet available, disable or remove the MCP OpenAPI Spec Loader functionality until remediation can be applied.
  • Apply network‑layer controls to block outbound requests from the litellm process to untrusted destinations, or configure a whitelist of allowed target URLs.

Generated by OpenCVE AI on June 21, 2026 at 16:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 21 Jun 2026 15:00:00 +0000

Type Values Removed Values Added
Description A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of the argument spec_path causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure.
Title BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery
First Time appeared Litellm
Litellm litellm
Weaknesses CWE-918
CPEs cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*
Vendors & Products Litellm
Litellm litellm
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-06-21T09:30:08.242Z

Reserved: 2026-06-20T17:12:20.743Z

Link: CVE-2026-12798

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-21T17:45:05Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)