Vulnerability · Published Jun 21, 2026 · Assigned by VulDB
CVE-2026-12771BerriAI litellm M2M JWT user_api_key_auth.py improper authorization
Medium 5.0
In plain English
A medium-severity security flaw in litellm from BerriAI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | litellm | no fix listed | GHSA-qmf3-4767-5fg3 |
| PyPI | litellm | no fix listed | PYSEC-2026-4075 |
Affected products (as reported)
Weakness: CWE-285, CWE-266 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-372513 | BerriAI litellm M2M JWT user_api_key_auth.py improper authorization vdb-entry
- VDB-372513 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-12771 | CVE Analysis and Report third-party-advisory
- Submit #811280 | litellm <= 1.82.2 Improper Authorization (CWE-285) third-party-advisory
- https://gist.github.com/YLChen-007/70e4e106527f74ddf17953ff0f6c248d exploit