Security Resilience

CVE-2026-25478

Litestar ≤ 2.20.0

Public PoC
Published
09 February 2026
Modified
17 February 2026
Patch / advisory
CVSS Score v3.1 7.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS Score 0.0057 41th percentile
Risk Priority 55 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-25478 is a high-severity Permissive Cross-domain Security Policy with Untrusted Domains (CWE-942) vulnerability in Litestar. Its CVSS base score is 7.4 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Drive-by Compromise (T1189); ranked at the 41th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-4 (Information Flow Enforcement) and SC-7 (Boundary Protection) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-25478 affects Litestar, an Asynchronous Server Gateway Interface (ASGI) framework, in versions prior to 2.20.0. The vulnerability arises in the CORSConfig.allowed_origins_regex component, where a regular expression is constructed from configured allowlist values without escaping metacharacters. This regex is then used with Python's fullmatch() function for origin validation, enabling malicious origins to match unexpectedly and bypass intended CORS restrictions. The issue is classified under CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) and carries a CVSS v3.1 base score of 7.4 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N).

An attacker can exploit this vulnerability remotely over the network with low complexity and no required privileges, though it necessitates user interaction, such as tricking a victim into loading a malicious webpage. By crafting an origin string that exploits the unescaped metacharacters in the regex, the attacker can make their domain appear to match the application's allowlist. Successful exploitation changes the scope to high, allowing high-impact confidentiality violations, such as unauthorized access to sensitive data via cross-origin requests that bypass CORS protections.

Litestar addressed this issue in version 2.20.0, as detailed in the project's changelog, release notes, and a specific commit (eb87703b309efcc0d1b087dcb12784e76b003d5a). The GitHub security advisory (GHSA-2p2x-hpg8-cqp2) recommends upgrading to 2.20.0 or later to mitigate the vulnerability by properly escaping metacharacters in the regex construction.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, CORSConfig.allowed_origins_regex is constructed using a regex built from configured allowlist values and used with fullmatch() for validation. Because metacharacters are not escaped, a malicious origin can match unexpectedly.…

more

The check relies on allowed_origins_regex.fullmatch(origin). This vulnerability is fixed in 2.20.0.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1491 Defacement Impact
Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content.
T1539 Steal Web Session Cookie Credential Access
An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-25480Same product: Litestar Litestar
CVE-2026-25479Same product: Litestar Litestar
CVE-2024-52581Same product: Litestar Litestar
CVE-2024-45642Shared CWE-942
CVE-2026-74881Shared CWE-942
CVE-2024-6449Shared CWE-942
CVE-2026-62387Shared CWE-942
CVE-2025-9292Shared CWE-942
CVE-2026-8919Shared CWE-942
CVE-2025-13017Shared CWE-942

Affected Assets

litestar
litestar
≤ 2.20.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V3.4.3
  • V3.4.6
  • V3.5.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Information flow enforcement requires approved authorizations and would reject policies permitting untrusted domains.

Boundary protection at external interfaces stops unauthorized cross-domain communication allowed by permissive policies.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-01 mostly match
blocks

Hardened configuration baselines and reviews directly prevent permissive CSP or cross-domain policies.

PR.PS-06 mostly match
blocks

Secure SDLC activities include review and testing of web security policies to avoid untrusted domains.

ID.RA-01 partial match
blocks

Vulnerability identification processes can surface permissive policy misconfigurations.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect overly permissive cross-domain policies but does not prevent their initial introduction.

removes

A.8.9's mechanism — defining secure configuration templates, monitoring actual configurations against the target, and addressing deviations through automatic enforcement or corrective action — directly targets configuration-level weaknesses like a permissive cross-domain policy file. Well implemented, the template specifies restrictive cross-domain policy settings, monitoring detects the permissive deviation, and enforcement corrects it, removing the flaw. The remainder is bounded: cross-domain policies embedded in unmanaged third-party components or hardcoded in first-party code rather than expressed as configuration fall outside the clause's reach.

prevents

Secure coding practices require proper configuration of CSP and cross-domain policies to avoid untrusted domains.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25–8.29), so it reduces ordinary software weaknesses in delivered code the way those practices do; CWE-942 is a design/configuration weakness in cross-domain policy files that secure design guidance and threat-modelling (item c) would catch in some cases, but the clause's ceiling on this verb is `partial` and the remainder is the same fallible-practice remainder as for CWE-134.

finds

A.8.8's disclosure reach surfaces CWE-942 instances in third-party products that carry published CVEs, but misses the first-party cross-domain policy misconfigurations that have no vendor advisory, so it finds only a minority.

References