Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litellm
  4. ›
  5. CVE-2026-12797

CVE-2026-12797: BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints

June 21, 2026 (updated September 14, 2026)

A security flaw has been discovered in BerriAI litellm up to 1.82.5. Affected is the function async_pre_call_hook of the file enterprise/enterprise_hooks/banned_keywords.py of the component Completions Interface. The manipulation of the argument prompt results in incorrect authorization. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure.

References

  • gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a
  • github.com/advisories/GHSA-p897-vf7j-f5h8
  • nvd.nist.gov/vuln/detail/CVE-2026-12797
  • vuldb.com/cve/CVE-2026-12797
  • vuldb.com/submit/811288
  • vuldb.com/vuln/372559
  • vuldb.com/vuln/372559/cti

Code Behaviors & Features

Detect and mitigate CVE-2026-12797 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.82.5

Solution

Unfortunately, there is no solution available yet.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

pypi/litellm/CVE-2026-12797.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:22:13 +0000.