CVE-2026-48060litestar-org litestar
High 8.1 No auth needed
Follow: this CVE · litestar-org · litestar-org litestar We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- —
- Auth required
- No
- Published
- Jul 28, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for litestar.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | litestar |
< 2.22.0 |
2.22.0 |
pip install "litestar>=2.22.0" |
| PyPI | litestar |
< 2.22.0 |
2.22.0 |
pip install "litestar>=2.22.0" |
Per OSV / GitHub Advisories (GHSA-542p-wvx7-72m4, PYSEC-2026-2604). Check the version in your lockfile before upgrading.
Affected products
- litestar-org · litestar
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.