Litestar: HTML Injection Through CSRF Token
Published Jul 28, 2026
8.1
HIGHCVSS 3.1
EPSS 0.40%
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
-
- Version < 2.20.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Litestar-Org | Litestar | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (4)
- https://docs.litestar.dev/2/release-notes/changelog.html#2.22.0
- https://github.com/advisories/GHSA-542p-wvx7-72m4 Advisory
- https://github.com/litestar-org/litestar/releases/tag/v2.20.0 x_refsource_MISC
- https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4 exploitx_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://docs.litestar.dev/2/release-notes/changelog.html#2.22.0 | ||
| https://github.com/advisories/GHSA-542p-wvx7-72m4 | Advisory | |
| https://github.com/litestar-org/litestar/releases/tag/v2.20.0 | x_refsource_MISC | |
| https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4 | exploitx_refsource_CONFIRM |
Change history (0)
No recorded changes yet.