What’s Vulnerable › Vulnerabilities
GHSA-hhww-mrg2-969h: LiteLLM vulnerable to reflected XSS in /sso/debug/callback
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2026-10-27 · updated 2026-10-27
- Weakness: CWE-79
Description
### Summary 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.
Affected products
- Pypi Litellm: from 1.65.5 before 1.85.0; 1.65.5, 1.65.6, 1.65.7, 1.65.8, 1.66.0, 1.66.1 (+192) — fixed in 1.85.0
How to fix
Upgrade to a fixed version: Pypi Litellm 1.85.0. Check the vendor advisory for mitigations.
References
- https://github.com/BerriAI/litellm/security/advisories/GHSA-hhww-mrg2-969h
- https://github.com/BerriAI/litellm/pull/27498
- https://github.com/BerriAI/litellm/commit/13a193367f0ae2e7e8b29913e0d23a32d3bb0457
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/releases/tag/v1.85.0
Get alerted when GHSA-hhww-mrg2-969h or the next vulnerability affects your stack