{"schemaVersion":3,"id":"CVE-2026-12798","aliases":["GHSA-c693-x898-5g4h","PYSEC-2026-4069"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-06-21T09:30:08.242Z","modified":"2026-06-22T17:14:45.929Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"CVE.org","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.1,"severity":"low","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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.004,"percentile":0.32783,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.004},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.004,"percentile":0.32783}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.004,"percentile":0.32783}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_YLCHEN-007_C1104C529975699BA347FEEDFBE02C5A","name":"C1104C529975699Ba347Feedfbe02C5A","source":"github","url":"https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_321BE2C962A6C766","name":"Exploit Reference (vuldb.com)","source":"reference","url":"https://vuldb.com/submit/811290","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery (SSRF)","description":"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"berriai","product":"litellm","name":"LiteLLM","label":"litellm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.82.0","noFixRecorded":false,"fixedIn":null},{"text":"1.82.1","noFixRecorded":false,"fixedIn":null},{"text":"1.82.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.82.0 | 1.82.1 | 1.82.2","eol":null,"hubHref":"/vendor/berriai/litellm"},{"vendor":"litellm","product":"litellm","name":"litellm","label":"litellm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.82.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.82.2","eol":null,"hubHref":"/vendor/litellm/litellm"},{"vendor":"PyPI","product":"litellm","name":"litellm","label":"litellm","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/litellm","purlType":"pypi","versions":[{"text":"≤ 1.82.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.82.2","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/vuln/372560","label":"vuldb.com/vuln/372560","hostname":"vuldb.com","tags":["VDB Entry","Technical Description","WEB","Third Party Advisory"]},{"url":"https://vuldb.com/vuln/372560/cti","label":"vuldb.com/vuln/372560/cti","hostname":"vuldb.com","tags":["Signature","Permissions Required","WEB","VDB Entry"]},{"url":"https://vuldb.com/cve/CVE-2026-12798","label":"vuldb.com/cve/CVE-2026-12798","hostname":"vuldb.com","tags":["Third Party Advisory","WEB","VDB Entry"]},{"url":"https://vuldb.com/submit/811290","label":"vuldb.com/submit/811290","hostname":"vuldb.com","tags":["Third Party Advisory","WEB","Exploit","VDB Entry"]},{"url":"https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a","label":"gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a","hostname":"gist.github.com","tags":["Exploit","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12798","label":"nvd.nist.gov/vuln/detail/CVE-2026-12798","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/BerriAI/litellm","label":"github.com/BerriAI/litellm","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/litellm","label":"pypi.org/project/litellm","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-c693-x898-5g4h","label":"github.com/advisories/GHSA-c693-x898-5g4h","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-06-21T09:30:08.242Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-22T17:14:45.929Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:44:59.610Z","stale":false,"partial":false}}