Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litestar
  4. ›
  5. CVE-2026-25479

CVE-2026-25479: Litestar's AllowedHosts has a validation bypass due to unescaped regex metacharacters in configured host patterns

February 9, 2026

AllowedHosts host validation can be bypassed because configured host patterns are turned into regular expressions without escaping regex metacharacters (notably .). A configured allowlist entry like example.com can match exampleXcom

References

  • github.com/advisories/GHSA-93ph-p7v4-hwh4
  • github.com/litestar-org/litestar
  • github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4
  • nvd.nist.gov/vuln/detail/CVE-2026-25479

Code Behaviors & Features

Detect and mitigate CVE-2026-25479 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.19.0 before 2.20.0, version 2.19.0

Fixed versions

  • 2.20.0

Solution

Upgrade to version 2.20.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-185: Incorrect Regular Expression

Source file

pypi/litestar/CVE-2026-25479.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:26 +0000.