GitHub Advisoryadvisory · PyPI

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

MEDIUM Published 2026-10-27 Modified 2026-10-27 Official page ↗
Ecosystem
PyPI
Packages
litellm
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Weaknesses
CWE-79
Reviewed
2026-10-27

Affected packages

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

Description

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. 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.

Related

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References