PT-2026-48542 · Litestar · Litestar
CVE-2026-48060
·
Published
2026-06-10
·
Updated
2026-07-28
CVSS v3.1
8.1
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Litestar version 2.21.0
Description
Instances using a template engine (such as Jinja, Mako, or MiniJinja) in conjunction with CSRF protection are susceptible to HTML Injection. This occurs when the application is configured to include CSRF inputs in hidden form fields, as the contents of the
csrftoken cookie are excluded from automatic escaping by the template engine. An attacker can poison the csrftoken cookie with malicious HTML or script tags, which are then rendered in the victim's browser. This can be escalated to Cross Site Scripting (XSS), potentially leading to the theft of session tokens, cookies, or the execution of phishing attacks by altering the site's appearance.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Litestar