CVE-2026-35030: LiteLLM: Authentication bypass via OIDC userinfo cache key collision
LiteLLM before 1.83.0 caches OIDC userinfo under a key built from the first 20 characters of the JWT. When JWT authentication is enabled, an unauthenticated attacker can send a token that collides with a legitimate user's cached token and inherit that user's identity and permissions. Upgrade to 1.83.0.
Published Apr 3, 2026 · Updated Apr 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
With enable_jwt_auth: true, LiteLLM looks up OIDC userinfo in a cache. The cache key is token[:20]. Tokens signed with the same algorithm share the same header, so their first 20 characters are identical. Any two tokens from the same issuer setup therefore map to the same key.
An attacker builds a token with the same leading characters as a token a real user recently presented. On a cache hit, LiteLLM returns the cached identity of that user instead of validating the attacker's token. The attacker then acts with that user's permissions, which on a LiteLLM proxy can include admin rights, access to model API keys, spend and team data, and the ability to run requests on the organisation's model budget.
The flaw is limited to deployments that turned JWT authentication on. The advisory says the option is off by default and that most instances are not affected. The attacker needs no account, but a victim's token must be in the cache.
Who is affected
The pip package litellm, all versions before 1.83.0, when enable_jwt_auth: true is set in the proxy configuration. Instances without JWT authentication are not affected. Check the version and the setting:
pip show litellm
grep -n enable_jwt_auth config.yamlFor Docker deployments, check the image tag of the LiteLLM proxy.
litellm
- Ecosystem
- PyPI
- Affected
- < 1.83.0
- Fixed in
- 1.83.0
- Check
pip show litellm
How to fix it
Upgrade to litellm 1.83.0. The cache key now uses the full hash of the JWT token.
pip install --upgrade "litellm>=1.83.0"The advisory gives two workarounds if you cannot upgrade at once: disable OIDC userinfo caching by setting the cache TTL to 0, or turn JWT authentication off. The advisory does not name the TTL setting, so check the LiteLLM documentation for it.
How to tell if you were hit
Review proxy logs for requests that were authorised as a user whose own session was not the source, such as one identity appearing from several unrelated client addresses within a short period. Look for JWTs presented to the proxy that fail signature checks elsewhere but were still accepted. Audit key creation, team changes and spend for users who did not make them. If you suspect abuse, rotate the virtual keys and provider API keys held by the proxy.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
When JWT authentication is enabled (enable_jwt_auth: true), the OIDC userinfo cache uses token[:20] as the cache key. JWT headers produced by the same signing algorithm generate identical first 20 characters.
This configuration option is not enabled by default. Most instances are not affected.
An unauthenticated attacker can craft a token whose first 20 characters match a legitimate user's cached token. On cache hit, the attacker inherits the legitimate user's identity and permissions. This affects deployments with JWT/OIDC authentication enabled.
Patches
Fixed in v1.83.0. The cache key now uses the full hash of the JWT token.
Workarounds
Disable OIDC userinfo caching by setting the cache TTL to 0, or disable JWT authentication entirely.
Credited to veria-labs.
Questions
- Is the default LiteLLM configuration affected?
No. The flaw needs
enable_jwt_auth: true, which is not enabled by default. The advisory says most instances are not affected.- Does the attacker need an account?
No. The attack is unauthenticated, but it relies on a legitimate user's token already being in the OIDC userinfo cache so that the key collides.
- What is the workaround if I cannot upgrade?
Set the OIDC userinfo cache TTL to 0, or disable JWT authentication entirely. Upgrading to 1.83.0 is the actual fix.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More LiteLLM vulnerabilities
All LiteLLM entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026GHSA-hhww-mrg2-969h
LiteLLM vulnerable to reflected XSS in /sso/debug/callback
medium6.8Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026
