PyPI (Python)Worst: High10 advisories
litestar: known vulnerabilities
litestar has 10 reviewed security advisories in the GitHub Advisory Database — 6 high, 3 moderate, 1 low. The most recent was published 2026-06-10. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the litestar versions running across your servers, containers and images, and ranks what to patch first.
How to fix litestar
Upgrade litestar to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade litestar (pin litestar>=2.22.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (10)
Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header
Moderate 5.9 CWE-348 CWE-807
— Affected: before 2.22.0. Fixed in 2.22.0. Published 2026-06-10. GHSA-3qmc-cj7q-62hv · CVE-2026-48061
Litestar has HTML Injection Through its CSRF Token
High 8.1 CWE-79
— Affected: before 2.22.0. Fixed in 2.22.0. Published 2026-06-10. GHSA-542p-wvx7-72m4 · CVE-2026-48060
Litestar's CORS origin allowlist has a bypass due to unescaped regex metacharacters in allowed origins
High 7.4 CWE-942
— Affected: from 2.19.0 up to 2.20.0. Fixed in 2.20.0. Published 2026-02-09. GHSA-2p2x-hpg8-cqp2 · CVE-2026-25478
Litestar's AllowedHosts has a validation bypass due to unescaped regex metacharacters in configured host patterns
Moderate 6.5 CWE-185
— Affected: from 2.19.0 up to 2.20.0. Fixed in 2.20.0. Published 2026-02-09. GHSA-93ph-p7v4-hwh4 · CVE-2026-25479
Litestar's FileStore key canonicalization collisions allow response cache mixup/poisoning (ASCII ord + Unicode NFKD)
Moderate 6.5 CWE-176 CWE-20
— Affected: from 2.19.0 up to 2.20.0. Fixed in 2.20.0. Published 2026-02-09. GHSA-vxqx-rh46-q2pg · CVE-2026-25480
Litestar X-Forwarded-For Header Spoofing Vulnerability Enables Rate Limit Evasion
High 7.5 CWE-807
— Affected: from 2.17.0 up to 2.18.0. Fixed in 2.18.0. Published 2025-10-06. GHSA-hm36-ffrh-c77c · CVE-2025-59152
Litestar has potential log injection in exception logging
Low 3.7 CWE-117
— Affected: before 2.17.0. Fixed in 2.17.0. Published 2025-08-11. GHSA-674p-xv2x-rf3g
Litestar allows unbounded resource consumption (DoS vulnerability)
High 7.5 CWE-770
— Affected: before 2.13.0. Fixed in 2.13.0. Published 2024-11-20. GHSA-gjcc-jvgw-wvwj · CVE-2024-52581
Withdrawn Advisory: Litestar has an environment Variable injection in `docs-preview.yml` workflow
High 8.3 CWE-74 CWE-78
— Affected: up to and including 2.10.0. No fixed release is listed. Published 2024-08-12. GHSA-4hq2-rpgc-r8r7 · CVE-2024-42370
Litestar and Starlite vulnerable to Path Traversal
High 8.2 CWE-22
— Affected: from 2.0.0 up to 2.6.4. Fixed in 2.6.4. Published 2024-05-06. GHSA-83pv-qr33-2vcf · CVE-2024-32982
Find litestar across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.