Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2026-48060 EUVD-2026-49994GHSA-542p-wvx7-72m4PYSEC-2026-2604

Litestar: HTML Injection Through CSRF Token

Published Jul 28, 2026 · Updated Jul 28, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
litestar-org litestar < 2.20.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI litestar < 2.22.0 2.22.0 GHSA-542p-wvx7-72m4

References