HTML Injection Vulnerability in Litestar ASGI Framework
CVE-2026-48060
8.1HIGH
What is CVE-2026-48060?
The Litestar ASGI framework, before version 2.20.0, is susceptible to an HTML injection issue when utilizing a template engine with CSRF protection. This vulnerability arises from the CSRF cookie content not being automatically escaped by the template engine when following recommended inline configuration in the documentation. An attacker could exploit this loophole to escalate the HTML injection to Cross Site Scripting (XSS), potentially compromising the security of the application. A fix is available in version 2.20.0.
Affected Version(s)
litestar < 2.20.0
