Advisory

GHSA-hhww-mrg2-969h

Also known as: None

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-27 15:31 UTC
Modified
2026-10-27 15:47 UTC

Affected packages and fixes

litellm

PyPI · All systems

Affected

  • introduced 1.65.5, fixed 1.85.0 (ecosystem)

Fixed versions

1.85.0

Fix

  • Fixed version 1.85.0
    pip install --upgrade litellm==1.85.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences