PatchSiren cyber security CVE debrief
CVE-2026-48060 litestar-org CVE debrief
CVE-2026-48060 is a high-severity vulnerability in Litestar, an Asynchronous Server Gateway Interface (ASGI) framework. The issue arises when using a template engine with CSRF protection, allowing for HTML injection that can escalate to Cross-Site Scripting (XSS). This occurs because the CSRF cookie contents are excluded from automatic escaping by the template engine. The vulnerability was patched in version 2.20.0.
- Vendor
- litestar-org
- Product
- litestar
- CVSS
- HIGH 8.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-28
- Original CVE updated
- 2026-10-23
- Advisory published
- 2026-07-28
- Advisory updated
- 2026-10-23
Who should care
Defenders responsible for Litestar deployments, particularly those using template engines and CSRF protection, should assess their exposure and prioritize upgrading to version 2.20.0 or later.
Why it matters
CVE-2026-48060 is a high-severity vulnerability in Litestar that allows HTML injection and potential XSS due to improper escaping of CSRF cookie contents. Defenders should prioritize upgrading to version 2.20.0 or later and assess their exposure.
- Potential for HTML injection and XSS attacks
- Exposure of Litestar deployments using template engines and CSRF protection
- Need for verification of CSRF cookie handling and template engine configuration
- Priority for upgrading to Litestar version 2.20.0 or later
Technical summary
The vulnerability occurs when using a template engine in conjunction with CSRF protection in Litestar. The contents of the CSRF cookie are not automatically escaped by the template engine, allowing for HTML injection that can be escalated to XSS. This issue arises because the template engine does not properly handle the CSRF cookie contents when configured inline with documentation recommendations. The vulnerability was patched in version 2.20.0, and defenders should prioritize upgrading to this version or later to mitigate this vulnerability.
Defensive priority
Defenders should prioritize upgrading to Litestar version 2.20.0 or later to mitigate this vulnerability. Systems using Litestar with template engines and CSRF protection should be assessed for exposure.
Recommended defensive actions
- Upgrade to Litestar version 2.20.0 or later
- Assess Litestar deployments using template engines and CSRF protection for exposure
- Verify CSRF cookie handling and template engine configuration
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, its impact, and the patched version. However, the exact scope of affected deployments and potential exploitation remain unknown. Defenders should verify CSRF cookie handling and template engine configuration. The vulnerability allows HTML injection that can escalate to Cross-Site Scripting (XSS) due to improper escaping of CSRF cookie contents by the template engine. Evidence from the CVE Program and NVD suggests that Litestar versions prior to 2.20.0 are affected.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-48060 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-48060
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-48060 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-48060
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/litestar-org/litestar/releases/tag/v2.20.0
-
Source reference
Unverified legacy reference
URL: https://github.com/litestar-org/litestar/security/advisories/GHSA-542p-wvx7-72m4
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.