Skip to main content
CVE-2026-25478VulnerabilityPublished

CVE-2026-25478: litestar · Permissive Cross-domain Policy with Untrusted Domains

Affects litestarSource CVE Database V5

0

Not known to be exploited · CVSS 7.4 High : upgrade to 2.20.0 soon.

Data as of 26 Oct 2026, 08:30 UTC

CVSS 3.1 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 38% 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:R/S:C/C:H/I:N/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 26 Oct 2026.

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

1. Upgrade all litestar instances to version 2.20.0 or later, where the vulnerability is fixed by properly escaping regex metacharacters in allowed_origins_regex. 2. Audit current CORS configurations to identify any overly permissive or regex-based origin allowlists and replace them with explicit, validated origin lists where possible. 3. Implement runtime monitoring and logging of cross-origin requests to detect anomalous or unexpected origins attempting access. 4. Employ Web Application Firewalls (WAFs) with rules to block suspicious cross-origin requests that do not match expected patterns. 5. Educate developers and security teams about the risks of regex-based origin validation and encourage use of safer CORS libraries or configurations. 6. Conduct penetration testing focused on CORS policies to verify that no unauthorized origins can bypass restrictions. 7. For critical applications, consider additional layers of authentication or token validation on cross-origin requests to reduce risk of unauthorized data access.

Description

CVE-2026-25478 is a high-severity vulnerability in the litestar ASGI framework versions prior to 2.20.0. It arises from improper construction of the allowed_origins_regex used for CORS origin validation, where metacharacters in the allowlist are not escaped. This flaw allows malicious origins to bypass the intended restrictions, potentially enabling cross-domain attacks. Exploitation requires user interaction but no authentication, and it can lead to a breach of confidentiality by exposing sensitive data to untrusted domains. The vulnerability affects web applications using litestar for asynchronous server gateway interfaces, particularly those relying on CORS for security. Although no known exploits are currently in the wild, the vulnerability's nature and CVSS score of 7.4 indicate a significant risk. European organizations using litestar in web services should prioritize upgrading to version 2.

References

Community reviews

Loading reviews…