Skip to main content

undici EUVDEUVD-2026-50568

| CVE-2026-15157 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-07-29 openjs GHSA-m8rv-5g2x-5cg5
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Identify application using undici duck-typed blob with user input
  2. Delivery
    Craft type value embedding CRLF sequences
  3. Exploit
    Submit request with malicious type field
  4. Execution
    undici writes type verbatim to Content-Type header
  5. Persist
    CRLF terminates header block, injects arbitrary headers
  6. Impact
    Smuggled second request reaches upstream server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

Exploitation requires all three of the following conditions simultaneously: first, the application (or a library it depends on) must call undici's request, stream, pipeline, or dispatch API directly rather than the native fetch API; second, the body passed to that call must be a duck-typed plain-object blob shape rather than a native Blob instance; third, the type property of that blob-like object must be derived from attacker-controlled input without prior CRLF sanitisation. Any deployment that uses only the native fetch API or passes only native Blob objects to undici is not vulnerable, regardless of version. Exploitation is further constrained by AC:H because the attacker must influence the type property specifically within the application's data-flow, which is not universally exposed. Authentication requirements are not confirmed from available CVSS data (PR:N per vector), indicating no authentication on the attacker side is required, but the application code pattern itself is the gating condition.

Impact

The NVD CVSS score of 4.2 (Medium) reflects genuine exploitation constraints: AC:H encodes the narrow code-path requirement (duck-typed blob with an untrusted type property), and UI:R captures the dependency on application code forwarding attacker-controlled data into that path. Despite the moderate base score, the request-smuggling potential meaningfully elevates practical risk in deployments where undici acts as a gateway or reverse-proxy client, because smuggled requests can bypass upstream access controls or poison shared persistent connections. EPSS data was not provided in the input, so probabilistic exploitation likelihood cannot be quantified. KEV status is not confirmed, so active exploitation cannot be asserted. The recurrence of this defect class across CVE-2022-35948 and CVE-2026-1527 suggests that undici has had repeated difficulty fully closing CRLF-injection sinks, which slightly increases confidence that exploitation paths exist even if they are not widely publicised. The scope metric in the NVD vector (S:U) may understate risk for request-smuggling scenarios that cross trust boundaries to upstream systems.

Exploit ScenarioDerived

An attacker submits a file-upload field or content-type parameter to a Node.js application that uses a wrapper library over undici's dispatch API, where the library constructs a duck-typed blob-like object setting type from the incoming request value. By embedding a CRLF sequence in that value - for example, image/png\r\nX-Injected-Header: evil - the attacker causes undici to emit a split Content-Type header followed by an attacker-controlled header, which can be followed by a complete second HTTP request body. If the upstream proxy interprets the resulting byte stream differently from undici, the smuggled request is processed as a distinct transaction, potentially inheriting the application's session or bypassing IP-based access controls. No public exploit identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 29, 2026

CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applications pass duck-typed blob-like bodies whose type property is populated from untrusted input. Affected are the 6.x branch before 6.28.0, all 7.x releases from 7.0.0 through 7.28.x, and all 8.x releases from 8.0.0 through 8.8.x, when callers use the request, stream, pipeline, or dispatch APIs with hand-rolled blob-shaped objects rather than native Blob instances or the fetch API. An attacker who controls the type value can append arbitrary HTTP headers to the outgoing request, potentially smuggling a second request past an upstream proxy or server. No public exploit identified at time of analysis and KEV status is not confirmed in the provided data.

RemediationAI

Upgrade undici to the patched release for the in-use branch: 6.28.0 for 6.x consumers, 7.29.0 for 7.x consumers, or 8.9.0 for 8.x consumers, as confirmed by the vendor advisory at https://github.com/nodejs/undici/security/advisories/GHSA-m8rv-5g2x-5cg5. If an immediate upgrade is blocked, the safest short-term workaround is to replace duck-typed blob-shaped objects with native Blob instances (new Blob([data], { type: contentType })), whose constructor strips CRLF automatically, before passing them to undici; this eliminates the vulnerable path without requiring CRLF sanitisation logic at every call site. Alternatively, apply explicit CRLF stripping (remove \r and \n) to any externally derived string before assigning it to a blob-like object's type field - but this must be enforced at every call site and is error-prone. Third-party libraries that wrap undici and construct duck-typed blobs from request input should be audited for this pattern and updated independently.

Affected VersionsENISA

undici 8.0.0 <8.9.0
undici 7.0.0 <7.29.0
undici 0 <6.28.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 (cpe:2.3:a:undici:undici:*:*:*:*:*:*:*:*) is the HTTP/1.1 client library that underpins Node.js's native fetch implementation and is widely consumed across the Node.js ecosystem both directly and through wrapper libraries. The root cause (CWE-93: Improper Neutralization of CRLF Sequences) is that the HTTP/1.1 dispatcher reads the type property of any blob-like body object and writes it verbatim into the outgoing Content-Type header without stripping carriage-return or line-feed characters. Native Blob objects are not affected because the Blob constructor already sanitises CRLF from type strings at construction time, and the fetch API is separately protected by its own header validation layer. The vulnerable sink is reached only when application code or an ecosystem library constructs a plain-object duck-typed blob from external data and passes it directly to one of undici's lower-level dispatch APIs. The defect class is identical to CVE-2022-35948 and CVE-2026-1527; this instance covers a header sink that the earlier remediations did not address.

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 MEDIUM
NVD 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 4.7 MEDIUM

S:C reflects request smuggling crossing trust boundaries to upstream systems; AC:H and UI:R capture the narrow, application-code-dependent exploitation path requiring untrusted type input.

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

Primary rating from Vendor (openjs).

CVSS VectorNVD

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

Lifecycle Timeline

3
CVSS changed
Aug 04, 2026 - 15:53 NVD
4.2 (MEDIUM) 5.4 (MEDIUM)
Patch available
Jul 29, 2026 - 22:02 EUVD
CVE Published
Jul 29, 2026 - 21:17 cve.org
MEDIUM 4.2

DescriptionNVD

undici does not validate the type property of a duck-typed blob-like request body before using it as the Content-Type header on the HTTP/1.1 dispatcher. 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, an application that passes a hand-rolled blob-like body (via request, stream, pipeline, or dispatch) whose type is derived from untrusted input allows an attacker to inject CRLF sequences and append arbitrary HTTP headers, potentially smuggling a second request past the upstream. Native Blob objects are safe because their constructor strips CRLF from the type, and fetch is unaffected because it validates headers, but ecosystem libraries that build duck-typed blob shapes from user input can reach the vulnerable path. This is the same defect class as CVE-2022-35948 and CVE-2026-1527, on a header sink that the earlier fixes did not cover. 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.1%
Top 96% exploitable
Prevalence
High
bundled with Node.js native fetch, extremely broad ecosystem adoption
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 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.1%
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

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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