NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

GHSA-hhww-mrg2-969h: LiteLLM vulnerable to reflected XSS in /sso/debug/callback

mediumCVSS 3.1 6.8

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

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 entries