cve.bz

CVE-2026-25479

6.5 mediumEPSS 0.4%

Medium (6.5) in litestar litestar. EPSS 0.4% chance of exploitation in the next 30 days. Fixed in litestar 2.20.0.

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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.4% chance of exploitation in the next 30 days; higher than 29% of CVEs (scores of 2026-10-31)
CWE
CWE-185
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-93ph-p7v4-hwh4PyPIlitestar>=2.19.0 <2.20.02.20.0
PYSEC-2026-2196PyPIlitestar<2.20.02.20.0

References

Check your stackJSON