Skip to main content

undici CVE-2026-11525

| EUVDEUVD-2026-37758 LOW
Permissive List of Allowed Inputs (CWE-183)
2026-06-17 openjs GHSA-g8m3-5g58-fq7m
3.7
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls or compromises upstream HTTP server
  2. Delivery
    Craft Set-Cookie header with non-spec SameSite substring value
  3. Exploit
    Undici client fetches response via fetch or proxy code path
  4. Execution
    Parser maps non-spec value to permissive SameSite token (e.g., Lax or None)
  5. Persist
    Application forwards weakened sameSite attribute to downstream consumers
  6. Impact
    Cross-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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

undici 7.0.0 <7.28.0
undici 8.0.0 <8.5.0
undici 0 <6.26.0

Affected Packages

npm undici fix: 6.26.0, 6.27.0, 7.28.0, 8.5.0

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

Vendor (openjs) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Jun 19, 2026 - 16:01 EUVD

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 28 npm packages depend on undici (16 direct, 23 indirect)

Ecosystem-wide dependent count for version 7.0.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Undici

View all
CVE-2022-35949 CRITICAL POC
9.8 Aug 12

undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge

CVE-2026-12151 HIGH POC
7.5 Jun 17

Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com

CVE-2026-14643 HIGH POC
7.5 Jul 29

Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from

CVE-2026-16729 MEDIUM POC
6.5 Jul 29

Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent

CVE-2022-31151 MEDIUM POC
6.5 Jul 21

Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2022-32210 MEDIUM POC
6.5 Jul 14

`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th

CVE-2026-15157 MEDIUM POC
5.4 Jul 29

CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic

CVE-2023-23936 MEDIUM POC
5.4 Feb 16

Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,

CVE-2022-35948 MEDIUM POC
5.3 Aug 15

undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection

CVE-2026-13697 CRITICAL
9.1 Jul 29

Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions

CVE-2026-109383 CRITICAL POC
9.1 Oct 15

Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0

CVE-2026-109829 CRITICAL POC
9.1 Oct 15

Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy