CVE-2026-12795: LiteLLM: SSO Debug Flow Has Improper Authentication
LiteLLM up to 1.82.2 exposes the SSO debug endpoints /sso/debug/login and /sso/debug/callback without authentication. They can show SSO user profile data and, per the researcher, raw tokens for Google and Microsoft. No patched version is listed yet.
Published Jun 21, 2026 · Updated Sep 10, 2026 · Analysis Nov 8, 2026
What an attacker can do
The code is in litellm/proxy/management_endpoints/ui_sso.py. The /sso/debug/login endpoint has no authentication dependency. Its only gate is a premium_user check, which tests the server's enterprise license, not the caller. The /sso/debug/callback endpoint has no authentication or authorization at all and returns OAuth data in an HTML page.
The researcher says the page exposes the user's email, display name and team IDs from the identity provider for every SSO provider. For Google and Microsoft, setting return_raw_sso_response=True bypasses the _OAUTH_TOKEN_FIELDS filter and exposes access_token, id_token and refresh_token. The page also places json.dumps() output in a script block without HTML escaping, which could allow XSS through fields such as display_name. The researcher's log proves only the unauthenticated access: a 303 redirect from login and a 400 from callback instead of 401 or 403. The token leak and XSS are not shown in the evidence, so treat them as unconfirmed.
The target is a LiteLLM Enterprise proxy with SSO configured and reachable by the attacker. The attack vector is the network, and a victim must complete an SSO flow in a browser. The exploit is public according to the CVE text.
Who is affected
The pip package litellm up to and including 1.82.2. The researcher ties exposure to LiteLLM Enterprise deployments with an SSO provider configured. Check the installed version:
pip show litellmThen test your own proxy: request /sso/debug/login without credentials. A 303 redirect instead of 401 or 403 means the endpoint is open.
litellm
- Ecosystem
- PyPI
- Affected
- <= 1.82.2
- Fixed in
- No patched version yet
- Check
pip show litellm
How to fix it
The data lists no patched version for litellm, and the sources give none. Until the vendor ships a fix, block /sso/debug/login and /sso/debug/callback at your reverse proxy or load balancer. The researcher also suggests requiring an admin role on both routes, removing the debug endpoints from production, and never returning raw SSO responses. Rotate Google or Microsoft tokens if you used the debug flow with return_raw_sso_response=True. Watch the LiteLLM release notes for a fixed version.
How to tell if you were hit
Search proxy and access logs for requests to /sso/debug/login and /sso/debug/callback, especially from addresses outside your admin network and without an authenticated session. A 303 on login or a 400 on callback to an unauthenticated client matches the PoC. Check identity provider logs for sign-ins that originate from the debug flow.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was determined in BerriAI litellm up to 1.82.2. This affects the function json.dumps of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Debug Flow. Executing a manipulation can lead to missing authentication. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure.
Questions
- Is there a patched LiteLLM version for CVE-2026-12795?
None is listed. The advisory says versions up to 1.82.2 are affected and the patched field is blank. Block the debug routes at your proxy until a fix appears.
- What does it expose?
SSO user email, display name and team IDs. For Google and Microsoft the researcher says raw tokens can leak when return_raw_sso_response is True, but the evidence does not demonstrate it.
- Does it affect the open-source proxy?
The login endpoint checks for an enterprise license, and the researcher describes an Enterprise deployment with SSO. Check your own proxy for the open route.
- Is it exploited in the wild?
The CVE text says the exploit is public. No source reports attacks in the wild.
References
Read for this analysis:
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
