ADVISORIES

Vulnerability

CVE-2026-48060

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.

2 advisories report this vulnerability, across 1 ecosystem.

High severity PyPI 2

Advisories

  • GHSA-542p-wvx7-72m4

    Litestar has HTML Injection Through its CSRF Token

    High CVE-2026-48060 PyPI Updated 13 July 2026
  • PYSEC-2026-2604

    Litestar has HTML Injection Through its CSRF Token

    CVE-2026-48060 PyPI Updated 13 July 2026

References