CVE-2026-25479: litestar · Incorrect Regular Expression
Affects litestarSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium : upgrade to 2.20.0 when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.20.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade litestar to 2.20.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| litestar-orglitestar | Affected
| Fixed in
|
AI-suggested
The primary mitigation is to upgrade all litestar deployments to version 2.20.0 or later, where the vulnerability is fixed by escaping regex metacharacters in allowlist entries. Organizations should audit their current litestar versions and plan immediate upgrades. Additionally, review and sanitize all host allowlist configurations to ensure they do not contain unintended regex patterns or metacharacters. Implement strict input validation on Host headers at the application or web server level to reject suspicious or malformed hostnames. Employ web application firewalls (WAFs) with rules to detect and block anomalous Host header values. Conduct penetration testing focusing on host header injection and bypass scenarios to validate the effectiveness of mitigations. Finally, monitor logs for unusual host header patterns that could indicate exploitation attempts.
Description
CVE-2026-25479 is a medium-severity vulnerability in the litestar ASGI framework versions prior to 2.20.0. It arises from improper handling of allowlist host entries, where regex metacharacters are not escaped, allowing attackers to bypass intended hostname restrictions by supplying crafted host headers that match the regex but are not legitimate hosts. This can lead to partial confidentiality and integrity impacts without requiring authentication or user interaction. The vulnerability is fixed in litestar version 2.20.0. European organizations using vulnerable litestar versions in web applications may face risks of host header attacks, potentially enabling unauthorized access or manipulation of application behavior. Mitigation involves upgrading to version 2.
References
- github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4 (opens in a new tab)
- github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace (opens in a new tab)
- docs.litestar.dev/2/release-notes/changelog.html (opens in a new tab)
- github.com/litestar-org/litestar/releases/tag/v2.20.0 (opens in a new tab)