HIGH

CVE-2026-48060

2026-07-28 CVSS v3.1
CVSS
8.1

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.

Summary dbcve.org

Litestar versions prior to 2.20.0 are vulnerable to HTML Injection that can escalate to XSS when using the template engine with CSRF protection. The CSRF cookie value is not automatically escaped by the template engine when configured according to documentation recommendations, allowing attackers to inject malicious scripts via the cookie.

Mitigation

Upgrade Litestar to version 2.20.0 or later. This is a framework-level patch that fixes the template escaping behavior for CSRF cookie values.

Weakness (CWE)

CWE-79 Cross-site Scripting (XSS)

EPSS Score

0.28%
Probability of exploitation in next 30 days
21.2th percentile

References

View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE