CVE-2026-48060
Published:July 28, 2026
Updated:August 04, 2026
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 Packages
litestar (CONDA):
Affected version(s) >=2.8.0 <2.22.0Fix Suggestion:
Update to version 2.22.0litestar (CONDA):
Affected version(s) >=2.8.0 <2.22.0Fix Suggestion:
Update to version 2.22.0https://github.com/litestar-org/litestar.git (GITHUB):
Affected version(s) >=v1.0.0 <v2.22.0Fix Suggestion:
Update to version v2.22.0litestar (PYTHON):
Affected version(s) >=1.0.0a0 <2.22.0Fix Suggestion:
Update to version 2.22.0Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.28