CVE-2026-48060: Litestar has HTML Injection Through its CSRF Token
This vulnerability affects all Litestar instances that use templates along with CSRF protection that has been configured inline with the documentation section of “Adding CSRF inputs” within the “Templating” page. An attacker that can successfully exploit this issue can inject arbitrary HTML tags into the page which is then rendered in the victim user’s browser. This includes script tags, allowing the attacker to escalate the attack to a Cross Site Scripting attack, thus executing arbitrary JavaScript code in the victim’s browser.
Depending on the configuration of the site, this could result in the theft of cookies or session tokens. This issue can also allow the attacker to change the appearance of the site. This could enable possible phishing attacks by injecting fake forms into the page or even skimming the information that a user enters into a legitimate form.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-48060 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →