CVE-2026-48060 Details
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.
A vulnerability allowing HTML injection has been identified in Litestar, an ASGI framework, prior to version 2.20.0. This issue arises in instances that use a template engine with CSRF protection enabled. The vulnerability can be escalated to Cross-Site Scripting (XSS) because the CSRF cookie's contents are not automatically escaped by the template engine when following the documentation's inline configuration recommendations. Exploitation involves injecting malicious HTML through a crafted CSRF token, which is then executed in the context of the user's browser.
Users can update to Litestar version 2.20.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 28, 2026CISA-ADP
Assessed Jul 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/litestar-org/litestar/releases/tag/v2.20.0 | [email protected] | Release NotesVendor |
| https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Litestar | >= 2.0, < 2.20.0 2.21.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 28, 2026 | New CVE Received | [email protected] |
| Jul 28, 2026 | CVE Modified | CISA-ADP |
Volerion