CVE-2026-12796
Received Received - Intake
Session Expiration in BerriAI litellm SSO Authentication

Publication date: 2026-06-21

Last updated on: 2026-06-21

Assigner: VulDB

Description
A vulnerability was identified in BerriAI litellm up to 1.82.2. This impacts the function get_redirect_response_from_openid of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Authentication Flow. The manipulation leads to session expiration. The attack is possible to be carried out remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-21
Last Modified
2026-06-21
Generated
2026-06-21
AI Q&A
2026-06-21
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
berriai litellm to 1.82.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-613 According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-12796 is an insecure session management vulnerability in LiteLLM's Single Sign-On (SSO) authentication flow. When a user logs in via SSO, the system generates a new UI session token but does not invalidate previously issued tokens for the same user. This means that any old tokens remain valid until they expire, allowing attackers who obtain these tokens to maintain persistent unauthorized access to the victim's account, even after the victim re-authenticates.

The root cause is in the function get_redirect_response_from_openid in the file litellm/proxy/management_endpoints/ui_sso.py, which creates new tokens without cleaning up old ones. This leads to an accumulation of valid tokens and prevents users from revoking compromised tokens through normal SSO re-authentication.

Impact Analysis

This vulnerability can allow attackers to maintain persistent unauthorized access to user accounts by using old session tokens that remain valid. Even if the legitimate user re-authenticates, the attacker can continue to access the account without interruption.

Additionally, the accumulation of valid tokens can lead to potential database resource exhaustion, which may degrade system performance or availability.

Detection Guidance

This vulnerability involves the accumulation of valid UI session tokens that are not invalidated upon re-authentication in the SSO flow of LiteLLM. Detection can focus on identifying multiple active session tokens for the same user that should have been invalidated.

You can monitor your system for unusually high numbers of active session tokens per user or check logs for repeated token issuance without corresponding invalidation.

Specific commands depend on your deployment and logging setup, but examples include querying your session token store or database for multiple valid tokens per user.

  • Use database queries to count active tokens per user, e.g., SQL: SELECT user_id, COUNT(token) FROM sessions WHERE valid = TRUE GROUP BY user_id HAVING COUNT(token) > 1;
  • Check application logs for repeated calls to get_redirect_response_from_openid without token invalidation.
  • Monitor network traffic for multiple valid session tokens being used from the same user account.
Mitigation Strategies

To mitigate this vulnerability, you should immediately implement measures to invalidate previously issued session tokens upon new SSO authentication.

Since the vulnerability allows persistent unauthorized access through old tokens, revoking or expiring all existing tokens for a user upon re-authentication is critical.

If a patch or update from the vendor is available, apply it as soon as possible.

  • Force logout of all active sessions for users after SSO re-authentication.
  • Implement token expiration policies to limit token lifetime to less than the default 24 hours.
  • Monitor and audit session token usage to detect suspicious activity.
Compliance Impact

This vulnerability allows attackers to maintain persistent unauthorized access to user accounts by exploiting insecure session management in the SSO authentication flow. Such unauthorized access can lead to exposure of personal or sensitive data.

Persistent unauthorized access and inability to revoke compromised tokens may result in violations of data protection requirements under regulations like GDPR and HIPAA, which mandate strict controls over user authentication, session management, and protection of personal data.

Therefore, this vulnerability could negatively impact compliance with these standards by undermining the confidentiality and integrity of user sessions and data.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12796. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart