---
schema_version: '1.0'
id: security-20261002-6c0ecc
title: 'CVE-2026-12797: BerriAI litellm has Security Feature Bypass in BannedKeywords
  and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints'
url: https://osv.dev/vulnerability/PYSEC-2026-4074
url_hash: 6c0eccb6e0434952b0e63cac0743c9664d5d0c1d790aa8dfe97a1f58772e3fa0
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4074
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-12797
- PYSEC-2026-4074
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- litellm
- PyPI
lang: en
published_at: '2026-10-01T16:38:27Z'
fetched_at: '2026-10-02T04:02:59.710367Z'
updated_at: '2026-10-02T05:19:37Z'
status: published
content_hash: 83692559727420ca2a9f484480ae02f23f5c7f8b220840863cf0231740635316
content_changed_at: null
license_note: full
summary: BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety
  Guardrails via call_type Mismatch on Async Endpoints
summary_source: rss
summary_en: BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety
  Guardrails via call_type Mismatch on Async Endpoints
summary_omitted_reason: null
redistribution: true
keywords_en:
- and
- Async
- AzureContentSafety
- BannedKeywords
- BerriAI
- Bypass
- call_type
- cve
- CVE-2026-12797
- CVE-2026-87817
- Endpoints
- Feature
- featured_in
- Guardrails
- has
- Hase
- library vulnerability
- litellm
- Mismatch
- PyPI
- PYSEC-2026-4074
- Security
- Security Council
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
entities_en:
- name: CVE-2026-87817
  type: event
- name: featured_in
  type: UNKNOWN
- name: Hase
  type: person
- name: Security Council
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-87817
  type: event
- name: Hase
  type: person
- name: Security Council
  type: organization
- name: featured_in
  type: UNKNOWN
key_facts: []
related: []
related_auto:
- name: GitPython
  type: concept
  weight: 1.0
- name: hooks/pre-commit
  type: artifact
  weight: 1.0
- name: GitHub Security Advisory
  type: content
  weight: 1.0
- name: Nintendo
  type: organization
  weight: 1.0
computed_at: '2026-10-02T05:19:27Z'
---

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

## TL;DR
BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints

## Key Points
- cve / CVE-2026-12797 / PYSEC-2026-4074 / severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L / litellm / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
**Advisory:** PYSEC-2026-4074 (CVE-2026-12797)

**Details:**
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:**
- https://nvd.nist.gov/vuln/detail/CVE-2026-12797
- https://gist.github.com/YLChen-007/078179224f07cc4e39e4f141a18c817a
- https://github.com/BerriAI/litellm
- https://vuldb.com/cve/CVE-2026-12797
- https://vuldb.com/submit/811288
- https://vuldb.com/vuln/372559
- https://vuldb.com/vuln/372559/cti
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-p897-vf7j-f5h8

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-4074_

## Source
元記事: [CVE-2026-12797: BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints](https://osv.dev/vulnerability/PYSEC-2026-4074) — published 2026-10-01T16:38:27Z
