---
schema_version: '1.0'
id: security-20260915-15bfdc
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/GHSA-p897-vf7j-f5h8
url_hash: 15bfdca4b7297854b80be9a334819796ce48e1618890f353eab3f064711f74c6
canonical_url: https://osv.dev/vulnerability/GHSA-p897-vf7j-f5h8
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-12797
- GHSA-p897-vf7j-f5h8
- 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-06-21T12:30:52Z'
fetched_at: '2026-09-15T16:00:53.492445Z'
updated_at: '2026-09-15T16:51:35Z'
status: published
content_hash: f485ec304347776363d00daf81b430c87911132982b0343ecfad9286312eda6b
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
- Endpoints
- Feature
- Features
- GHSA-p897-vf7j-f5h8
- Guardrails
- has
- library vulnerability
- LiteLLM
- Mismatch
- PyPI
- PyPI:click
- Security
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- software security
- via
entities_en:
- name: CVE
  type: data
- name: Features
  type: mediatype
- name: has
  type: UNKNOWN
- name: LiteLLM
  type: organization
- name: PyPI:click
  type: artifact
- name: Security
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: PyPI:click
  type: artifact
- name: has
  type: UNKNOWN
- name: Security
  type: organization
- name: Features
  type: mediatype
key_facts: []
related: []
related_auto:
- name: CVE識別子
  type: 概念
  weight: 8.6
- name: Concept
  type: UNKNOWN
  weight: 1.0
- name: OSV
  type: organization
  weight: 1.0
- name: NVD
  type: concept
  weight: 1.0
- name: LM Studio
  type: organization
  weight: 1.0
computed_at: '2026-09-15T16:51:18Z'
---

# 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 / GHSA-p897-vf7j-f5h8 / 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:** GHSA-p897-vf7j-f5h8 (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

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-p897-vf7j-f5h8_

## 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/GHSA-p897-vf7j-f5h8) — published 2026-06-21T12:30:52Z
