A AegiFlow
MEDIUMCVSS 6.8

GHSA-hhww-mrg2-969h

LiteLLM vulnerable to reflected XSS in /sso/debug/callback

Published
2026-10-27
Modified
2026-10-27
Sources
github-advisory

Summary

### Summary The `/sso/debug/callback` endpoint reflected identity-provider-controlled fields into an inline ` ` block via `json.dumps`, which escapes JSON string syntax but not HTML context characters such as ` `. An IdP-returned string field containing ` ` (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.

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIlitellm—1.85.0

Remediation: Upgrade to 1.85.0 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.