CVE-2026-12798 BerriAI litellm MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async server-side request forgery

Medium 5.3 Published Updated

Remote attackers can exploit a server-side request forgery vulnerability in the MCP OpenAPI Spec Loader to access internal resources.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-12798?

CVE-2026-12798 is a medium-severity server-side request forgery vulnerability in BerriAI litellm, published on 21 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-918

Which versions are affected by CVE-2026-12798?

3 open source packages ship an affected version, including litellm. It affects 1 product.

PackageAffectedFixed in
litellm PyPIAll versions to 1.82.2None
litellm PyPIAll versions to 1.82.2None
litellm PyPIAll versions to 1.82.2None

Products include Litellm Litellm.

How do I fix CVE-2026-12798?

Upgrade to a fixed version.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-12798 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12798 exists.

Sources

Also known as GHSA-c693-x898-5g4h, MINI-9vr8-mrwg-j4jv, MINI-g9h5-v85r-86q7, MINI-hqc2-fxh8-4pmv, MINI-r7pg-vgvm-7c2w, PYSEC-2026-4069.

Is CVE-2026-12798 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free