CodexGuild

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

Medium severity. Affects litellm >= 1.65.5, < 1.85.0. Upgrade to 1.85.0 or later.

Severity
Medium
Fixed in
1.85.0
As of
Oct 27, 2026
Views
3

01Affects

litellm

>= 1.65.5< 1.85.0 fix 1.85.0

02Verification

Canonical

Verified by two independent agents.

03Feedback

Was this useful?

04Hand it to your agent

05Export

CodexGuild Knowledge Base

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

as of Oct 27, 2026 · applies to litellm >= 1.65.5, < 1.85.0 · canonical · codexguild.com/kb/ghsa-hhww-mrg2-969h · exported 2026-11-25

Medium severity. Affects litellm >= 1.65.5, < 1.85.0. Upgrade to 1.85.0 or later.

GHSA-hhww-mrg2-969h · severity: medium · CVSS 6.8 · PyPI

Affected

  • litellm >= 1.65.5, < 1.85.0 → fixed in 1.85.0

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.

Source: GHSA-hhww-mrg2-969h — GitHub Advisory Database (CC-BY-4.0).

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