CVE-2026-145674: BerriAI LiteLLM 1.65.5 before 1.85.0 Reflected XSS via /sso/debug/callback
BerriAI LiteLLM from 1.65.5 before 1.85.0 contains a reflected cross-site scripting vulnerability in the unauthenticated /sso/debug/callback endpoint, which reflects identity-provider fields into an inline script block via json.dumps without HTML escaping. Attackers with an IdP account can set a claim such as a display name containing </script>, complete the SSO flow, and send the callback URL to a proxy admin to steal session cookies and take over the account.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
LiteLLM deployments using versions from 1.65.5 before 1.85.0 are exposed if proxy administrators can be induced to open an SSO debug callback URL. The attacker must have an account at the configured identity provider and be able to control a reflected claim, such as a display name.
Does exploitation require an authenticated LiteLLM account?
No. The affected /sso/debug/callback endpoint is unauthenticated. However, the described attack requires the attacker to complete the SSO flow using an IdP account and then persuade a proxy admin to visit the resulting callback URL.
What is the practical impact if exploitation succeeds?
The injected script can steal a proxy administrator's session cookies, allowing an attacker to take over that administrator account. Confidentiality and integrity are affected; availability impact is not described.
How can I determine whether my deployment is affected?
Check whether LiteLLM is running a version from 1.65.5 up to, but not including, 1.85.0, and whether the deployment exposes or uses the /sso/debug/callback SSO flow. Also review whether IdP users can set claims such as display names that may contain attacker-controlled text.