Skip to main content
CVE-2026-25479VulnerabilityPublished

CVE-2026-25479: litestar · Incorrect Regular Expression

Affects litestarSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium : upgrade to 2.20.0 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.20.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade litestar to 2.20.0.

Affected software

ProductAffectedFixed in
litestar-orglitestarAffected
  • <2.20.0
Fixed in
  • 2.20.0

AI-suggested

The primary mitigation is to upgrade all litestar deployments to version 2.20.0 or later, where the vulnerability is fixed by escaping regex metacharacters in allowlist entries. Organizations should audit their current litestar versions and plan immediate upgrades. Additionally, review and sanitize all host allowlist configurations to ensure they do not contain unintended regex patterns or metacharacters. Implement strict input validation on Host headers at the application or web server level to reject suspicious or malformed hostnames. Employ web application firewalls (WAFs) with rules to detect and block anomalous Host header values. Conduct penetration testing focusing on host header injection and bypass scenarios to validate the effectiveness of mitigations. Finally, monitor logs for unusual host header patterns that could indicate exploitation attempts.

Description

CVE-2026-25479 is a medium-severity vulnerability in the litestar ASGI framework versions prior to 2.20.0. It arises from improper handling of allowlist host entries, where regex metacharacters are not escaped, allowing attackers to bypass intended hostname restrictions by supplying crafted host headers that match the regex but are not legitimate hosts. This can lead to partial confidentiality and integrity impacts without requiring authentication or user interaction. The vulnerability is fixed in litestar version 2.20.0. European organizations using vulnerable litestar versions in web applications may face risks of host header attacks, potentially enabling unauthorized access or manipulation of application behavior. Mitigation involves upgrading to version 2.

References

Community reviews

Loading reviews…