AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2026-12795: LiteLLM: SSO Debug Flow Has Improper Authentication

mediumCVSS 4.0 5.5 · 3.1 7.3GHSA-j37q-q7p9-vpwm

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 litellm

Then 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

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 entries