Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls or compromises upstream HTTP server
-
DeliveryCraft Set-Cookie header with non-spec SameSite substring value
-
ExploitUndici client fetches response via fetch or proxy code path
-
ExecutionParser maps non-spec value to permissive SameSite token (e.g., Lax or None)
-
PersistApplication forwards weakened sameSite attribute to downstream consumers
-
ImpactCross-site request bypasses intended SameSite enforcement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
|
| Exploitation Conditions | Exploitation requires that the target application uses undici v5.15.0 or later to consume Set-Cookie response headers from an upstream server - specifically via undici's fetch or proxy code paths - and then forwards or makes security decisions based on the parsed sameSite attribute value. The attacker must control or influence the upstream server to deliver a Set-Cookie header with a non-standard SameSite value containing a spec token as a substring (e.g., 'SameSite=NoneOfYourBusiness' or 'SameSite=StrictLax'). Exploitation is further limited to deployments where the downgraded SameSite policy has a meaningful security consequence, such as CSRF-protection architectures relying on SameSite=Strict. Applications that do not inspect, forward, or trust the parsed sameSite attribute are not exploitable. No authentication is required from the perspective of undici's parsing behavior (PR:N), but the attacker must control an upstream server reachable by the undici client (AC:H). |
| Impact | The NVD CVSS 3.1 score of 3.7 (Low) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N is consistent with the nature of the flaw: network-accessible but requiring attacker control of an upstream server (AC:H), with impact limited to a silent integrity downgrade of cookie policy enforcement (I:L) and no confidentiality or availability impact. EPSS data is not present in the available intelligence, so exploitation probability cannot be quantified from that source. No CISA KEV listing and no POC are noted in the provided data, indicating no confirmed active exploitation or publicly available exploit code at time of analysis. While the raw CVSS score correctly places this in the Low tier for general deployments, the effective risk is architecture-dependent: applications relying on SameSite=Strict for CSRF protection via undici-proxied cookies face a more meaningful integrity risk than the score alone conveys. The AC:H rating appropriately reflects that an attacker must control or compromise an upstream HTTP server to deliver the crafted Set-Cookie header - this is not a trivially mass-exploitable condition. |
| Exploit ScenarioDerived | An attacker controlling a malicious upstream server responds to an undici-based reverse proxy or fetch client with a Set-Cookie header containing 'SameSite=StrictLax'; undici parses this as SameSite=Lax, silently downgrading from the server's apparent intent of Strict enforcement. The consuming application forwards this weakened sameSite attribute to downstream clients, and a cross-site request that would have been blocked under correct Strict enforcement now succeeds, potentially undermining CSRF protections in applications that rely on the proxied cookie's SameSite policy. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
SameSite attribute parsing in undici's cookie implementation uses substring matching instead of the case-insensitive exact match required by RFC 6265, enabling a malicious or non-compliant upstream server to silently downgrade a cookie's SameSite enforcement to a more permissive value. All undici installations from v5.15.0 onward through the unpatched release branches are affected when consuming Set-Cookie headers via undici's fetch or proxy code paths and forwarding or relying on the parsed sameSite attribute. No public exploit has been identified and no CISA KEV listing exists at time of analysis; however, the integrity impact is concrete in architectures where SameSite policy enforcement is delegated to the parsed cookie attribute.
RemediationAI
The primary fix is to upgrade undici to v6.26.0, v7.28.0, or v8.5.0, which implement spec-compliant case-insensitive exact matching for SameSite attribute values per RFC 6265. Full details are in the vendor advisory at https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m. If an immediate upgrade is not feasible, the vendor-recommended workaround is to add application-level validation after parsing any Set-Cookie header: check that the resulting sameSite attribute is exactly one of 'Strict', 'Lax', or 'None' (case-insensitive comparison), and reject or treat as maximally restrictive any value outside this set before forwarding or relying on it. This workaround requires code changes at the application layer and does not remediate the underlying library defect, meaning future undici updates may re-expose the issue if the workaround is removed. Applications that do not consume, forward, or make trust decisions based on the parsed sameSite attribute require no immediate action but should still upgrade to eliminate the defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
undici is a high-performance, ground-up HTTP/1.1 client for Node.js, maintained by the OpenJS Foundation and widely used as the underlying fetch and proxy implementation in Node.js applications. The vulnerability resides in the cookie parsing component introduced in v5.15.0. CWE-183 (Permissive List of Allowed Inputs) identifies the root cause: the parser accepts any SameSite token value that contains 'Strict', 'Lax', or 'None' as a substring, rather than validating against the exact case-insensitive token set mandated by RFC 6265 Section 4.1.1. This causes values such as 'SameSite=NoneOfYourBusiness' to be silently normalized to SameSite=None (the most permissive setting), and 'SameSite=StrictLax' to be normalized to SameSite=Lax (a downgrade from Strict). The affected CPE cpe:2.3:a:undici:undici:*:*:*:*:*:*:*:* spans all platforms and architectures. Applications acting as reverse proxies, API gateways, or server-side fetch clients that consume and forward or trust the parsed sameSite attribute are the primary at-risk surface; applications that never inspect or relay this attribute are not affected.
Know when Undici gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
AV:N because exploitation requires a network-accessible upstream server under attacker control; AC:H for that server-control prerequisite; PR:N as no client-side privileges are needed; I:L for integrity impact limited to SameSite policy downgrade; C and A remain N.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
1DescriptionCVE.org
Impact: When undici parses a Set-Cookie header, it accepts any SameSite attribute value that contains Strict, Lax, or None as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens. For example, SameSite=NoneOfYourBusiness is parsed as None (the most permissive setting), and SameSite=StrictLax is parsed as Lax (a downgrade from Strict).
Affected applications are those that consume Set-Cookie headers from server responses (for example via undici's fetch or proxy code paths) and then forward or rely on the parsed sameSite attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide.
This was introduced in undici 5.15.0 when the cookies feature was added.
Patches: Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds: After parsing a Set-Cookie header, validate that the resulting sameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.
Blast Radius
ecosystem impact- 28 npm packages depend on undici (16 direct, 23 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge
Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com
Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from
Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent
Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo
`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th
CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic
Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection
Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions
Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0
Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug
EUVD-2026-37758
GHSA-g8m3-5g58-fq7m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB