Skip to main content

undici EUVDEUVD-2026-50416

| CVE-2026-16729 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-07-29 ce714d77-add3-4f53-aff5-83d477b104bb GHSA-v3r7-h72x-cjcm
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Supply semicolon-embedded domain via tenant input
  2. Delivery
    Application passes value to undici setCookie
  3. Exploit
    Injected attribute appended to Set-Cookie header
  4. Execution
    Browser enforces attacker-chosen cookie policy
  5. Impact
    CSRF protection bypassed, cross-site request forged

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires that the target application uses undici's setCookie function and passes externally-controlled input - specifically a tenant-supplied, user-submitted, or reverse-proxied domain value - directly to the domain parameter, or passes unsanitized strings through the unparsed cookie array. The CVSS AC:H metric captures this conditionality: it is not a default code pattern and requires a specific architectural choice (tenant-scoped session cookies). Applications using only hardcoded or internally-generated domain values are entirely unexploitable. Exploitation is bounded to cookie attribute manipulation; direct data exfiltration or command execution is not achievable through this vector alone. The practical limiting factor is that the attacker must have a channel through which their input reaches the setCookie domain field, such as a tenant onboarding flow or a reverse-proxy that forwards host headers into cookie scoping logic.

Impact

The NVD CVSS base score of 4.8 with vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N correctly reflects that exploitation is network-reachable but conditioned on a specific application pattern - passing user-controlled input to setCookie's domain field - which is not a default or universal behavior. No EPSS data was provided in the intelligence feed, and this CVE is absent from the CISA KEV catalog, so no confirmed active exploitation exists. No POC has been referenced. Real-world risk is concentrated in multi-tenant SaaS platforms and API gateways where tenant-supplied hostnames are used to scope session cookies; for such deployments, the consequence is meaningful: CSRF mitigations that depend on SameSite enforcement can be silently neutralized. For applications using only hardcoded domain values in setCookie, the vulnerability has no exploitable attack surface. This is a genuine priority for the affected application pattern but a non-issue for the majority of undici consumers.

Exploit ScenarioDerived

A malicious tenant in a SaaS platform registers a domain value of 'attacker.example.com; SameSite=None' during account setup. When the server scopes a session cookie to this tenant-supplied domain by calling undici's setCookie, the resulting Set-Cookie header contains an injected 'SameSite=None' attribute. Browsers honor this attribute, disabling cross-site request restrictions for affected cookies and enabling a classic CSRF attack against victim users of that tenant context. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Jul 29, 2026

Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array entries to silently append, strip, or override attributes such as SameSite, HttpOnly, and Secure. Affected are all undici releases before 6.28.0, the 7.x branch before 7.29.0, and the 8.x branch before 8.9.0. In multi-tenant or reverse-proxy deployments that scope session cookies to tenant-supplied domains, this flaw enables CSRF protection bypass by downgrading or overriding the SameSite attribute, with no public exploit identified at time of analysis.

RemediationAI

Upgrade undici to the patched release for your active version branch: 6.28.0, 7.29.0, or 8.9.0, as confirmed by the OpenJS Foundation advisory at https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm. If an immediate upgrade is not feasible, the most effective compensating control is to validate and reject any user-supplied domain value that contains a semicolon before it reaches setCookie - this can be enforced with a simple allowlist or regex check at the application boundary. Similarly, avoid passing unsanitized external data through the unparsed cookie array. Restricting tenant-supplied domain input to a pre-approved list of hostnames eliminates the attack surface entirely with no functional side effects for well-structured multi-tenant configurations. Generic WAF rules are unlikely to be effective here since the injection occurs server-side within the Node.js process, not in HTTP request parsing.

Affected VersionsENISA

undici 0 <6.28.0
undici 8.0.0 <8.9.0
undici 7.0.0 <7.29.0

Affected Packages

npm undici fix: 6.28.0, 7.29.0, 8.9.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 Node.js HTTP/1.1 client library integrated directly into Node.js core since v18, widely used for server-side HTTP requests. Its setCookie function constructs Set-Cookie header values, but fails to reject or escape semicolons in the domain parameter - the semicolon being the delimiter that separates cookie attribute pairs in the header. A domain value like 'tenant.example.com; SameSite=None' is parsed by browsers as two distinct directives: the domain assignment and an injected SameSite attribute. A parallel path exists via unsanitized entries in the unparsed cookie array, which allows raw attribute strings such as 'HttpOnly' to be appended without the calling application having set them. CWE-74 (Injection) captures the root cause: structured output (a cookie header) is constructed from untrusted input without sanitizing the special characters that carry structural meaning in that format.

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 (ce714d77-add3-4f53-aff5-83d477b104bb) PRIMARY MEDIUM
NVD 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Network-reachable injection, but AC:H because exploitation requires the application to pass user input to setCookie domain; partial C and I from cookie attribute manipulation enabling CSRF; no availability impact.

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

Primary rating from Vendor (ce714d77-add3-4f53-aff5-83d477b104bb).

CVSS VectorNVD

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

Lifecycle Timeline

3
CVSS changed
Aug 05, 2026 - 15:22 NVD
4.8 (MEDIUM) 6.5 (MEDIUM)
Patch available
Jul 29, 2026 - 18:17 EUVD
CVE Published
Jul 29, 2026 - 17:16 cve.org
MEDIUM 4.8

DescriptionNVD

undici's setCookie function does not fully sanitize cookie attributes. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a domain value is not checked for semicolons and entries in the unparsed array are not sanitized, so attacker-influenced input can inject additional cookie attributes. For example, a domain value containing a semicolon can append attributes such as SameSite, and an unparsed entry can inject attributes such as HttpOnly, without the caller setting them. Applications that pass user-controlled input to these fields, such as multi-tenant or reverse-proxy servers that scope session cookies to a tenant-supplied domain, can have SameSite CSRF protections bypassed, or the Secure, HttpOnly, and SameSite attributes forced, stripped, or overridden. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.

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 93% exploitable
Prevalence
High
default HTTP client in Node.js core since v18, extremely broad ecosystem use
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

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

CVE-2026-84961 CRITICAL
9.1 Sep 04

TLS certificate validation bypass in undici's BalancedPool dispatcher silently discards function-valued options - includ

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected

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