Back

HIGH

Litestar: HTML Injection Through CSRF Token

Published Jul 28, 2026

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

Remediation

No remediation recorded yet.

References (4)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jul 28, 2026
Updated Jul 28, 2026
Reserved May 20, 2026
CISA Vulnrichment
Updated Jul 28, 2026
NVD
Status Deferred
Modified Jul 30, 2026
Red Hat
Severity n/a
Public date n/a
GHSA-542P-WVX7-72M4