Live threats

All CVEs / Litestar

CVE-2026-25479Litestar

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Feb 9, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-185
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Litestar.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI litestar ≥ 2.19.0 < 2.20.0 2.20.0 pip install "litestar>=2.20.0"
PyPI litestar < 2.20.0 2.20.0 pip install "litestar>=2.20.0"

Per OSV / GitHub Advisories (GHSA-93ph-p7v4-hwh4, PYSEC-2026-2196). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
litestarlitestar< 2.20.0

Official sources

References

Links published by the sources. Open them with care.