GHSA-hhww-mrg2-969h: LiteLLM vulnerable to reflected XSS in /sso/debug/callback
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.
Published Oct 27, 2026
Affected packages
litellm
- Ecosystem
- PyPI
- Affected
- >= 1.65.5, < 1.85.0
- Fixed in
- 1.85.0
- Check
pip show litellm
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to InfosecShinobi.
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/releases/tag/v1.85.0
- https://github.com/advisories/GHSA-hhww-mrg2-969h
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. No analysis has been written for this entry yet. Methodology
Coverage on the Beam blog
More LiteLLM vulnerabilities
All LiteLLM entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026CVE-2026-59819
LiteLLM: Local file read via request-supplied OIDC file references
low2.1Jul 22, 2026
