CVE-2026-40217: BerriAI LiteLLM Unprotected Alternate Channel Vulnerability

In short

CVE-2026-40217 is a vulnerability in BerriAI LiteLLM that attackers are exploiting. It could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. CISA added it to its Known Exploited Vulnerabilities catalog on 18 Nov 2026, and US federal agencies must fix it by 2 Dec 2026. CISA has not linked it to ransomware campaigns.

What is CVE-2026-40217?

CISA describes it as: BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Weakness: CWE-420.

Is CVE-2026-40217 being exploited?

Yes. CISA adds a vulnerability to the catalog only when it has evidence of exploitation in the wild, and it added CVE-2026-40217 on . CISA has not linked it to ransomware campaigns.

FIRST's EPSS model puts the chance of exploitation in the next 30 days at 21%, higher than 98% of scored CVEs (as of 29 Nov 2026).

How severe is CVE-2026-40217?

NVD scores it 8.8 (high) on CVSS 3.1. CVSS measures how bad a flaw is; EPSS and the KEV listing say how likely it is to be used.

How do you fix CVE-2026-40217?

CISA's required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Vendor guidance: github.com.

US federal agencies have until . For everyone else that date is a ceiling, not a target.

Which versions are affected?

CISA's catalog does not list version numbers. The vendor advisory and the NVD record list the affected and fixed versions. Rokkhe's briefing covers them too: Old doors, trusted keys: 6 attacks this week and how to check yours.

Sources

  1. CISA Known Exploited Vulnerabilities catalog: CVE-2026-40217
  2. NIST National Vulnerability Database: CVE-2026-40217
  3. CVE record
  4. FIRST Exploit Prediction Scoring System (EPSS)
  5. github.com

Data last updated · Compiled by Rokkhe Research from CISA, FIRST and NVD. This page uses the NVD API and is not endorsed or certified by the NVD.

Put your attack surface on the record.

Agree the scope, see a real finding, leave with a quote.

Scope approved first. Evidence with every finding.