LiteLLM vulnerable to reflected XSS in /sso/debug/callback
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- The rating the maker of the software gives it. Shown when it differs from the CVSS level.What do these mean? →
- Medium (ghsa)
- Fix
- Fixed in 1.85.0
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
LiteLLM, an open-source LLM proxy server, is affected by a cross-site scripting flaw in its SSO debug callback endpoint. An attacker who controls an account on the configured identity provider could trick a logged-in administrator into opening a crafted link, running malicious scripts that could steal session cookies and take over the admin account.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
The `/sso/debug/callback` endpoint reflected identity-provider-controlled fields into an inline `<script>` block via `json.dumps`, which escapes JSON string syntax but not HTML context characters such as `</script>`. An IdP-returned string field containing `</script>` (for example a user-editable display name) closed the script block and executed attacker JavaScript in the proxy's origin. Impact Reflected XSS on the LiteLLM proxy origin. The route required no authentication, so an attacker with an account on the configured IdP whose claims pass such strings through verbatim could complete the SSO flow themselves and deliver the resulting callback URL to a logged-in proxy admin. Scripts executing in the proxy origin can read the dashboard session cookie and act with the victim's privileges, up to full admin account takeover.
Timeline
- Advisory published
- Record last updated
- First seen by cve.now
Affected versions
- litellmPyPI
From 1.65.5 · fixed in 1.85.0