CVE-2026-25479 json
Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns
published 2026-02-09 8 mo ago modified 2026-07-13 3 mo ago also EUVD-2026-6497 , GHSA-93ph-p7v4-hwh4 , PYSEC-2026-2196
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. This vulnerability is fixed in 2.20.0.
Patch / fix
- pypi litestar 2.20.0
- litestar litestar 2.20.0
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litestar | >=2.19.0, <2.20.0 <2.20.0 |
2.20.0 |
Affected products
- litestar-org litestar
Classification
- Weakness
-
- CWE-185 Incorrect Regular Expression
References
-
github.com
/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace
web, patch
-
github.com
/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4
web, exploit, vendor-advisory, evidence
-
docs.litestar.dev
/2/release-notes/changelog.html#2.20.0
web, release-notes, advisory
-
github.com
/litestar-org/litestar/releases/tag/v2.20.0
web, release-notes, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-25479
advisory
-
github.com
/litestar-org/litestar
package
Sources
- CVE List CVE-2026-25479
- GitHub Advisory GHSA-93ph-p7v4-hwh4
- NVD CVE-2026-25479
- OSV PYSEC-2026-2196
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.