Litestar
Litestar: HTML Injection Through CSRF Token
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.20.0
Fixed in 2.20.0
Mitigation
Upgrade litestar to 2.20.0 or later.
References
- Vendor advisory github.com/litestar-org/litestar/security/advi…
- Release notes github.com/litestar-org/litestar/releases/tag/…
Timeline
Days relative to CVE publicationFirst public PoC 70 days before publication; not in CISA KEV. First PoC: Blinky-Keys/CVE-2026-48060 (created 19 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Blinky-Keys/CVE-2026-48060 | 19 May 2026 −70 d | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.