CVE Explorer
CVE-2026-25479
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"litestar","vendor":"litestar-org","versions":[{"status":"affected","version":"< 2.20.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-185","description":"CWE-185: Incorrect Regular Expression","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","tags":["x_refsource_MISC"],"url":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/references/2
{"name":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","tags":["x_refsource_MISC"],"url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/references/1
{"name":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC"],"url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/references/3
{"name":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","tags":["x_refsource_CONFIRM"],"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d01aec0c8fc9763a6607d045481f4c60153689b37be83697d5e57850ba28ae8d · sha256:b08e86b6eb782ffc… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.