Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

undici vulnerable to CRLF Injection via blob-like body 'type' property (CVE-2026-15157)

0
Medium
Published: 08/03/2026 (08/03/2026, 19:33:53 UTC)
Source: GCVE Database
Product: undici

Description

undici versions prior to 6.28.0, 7.0.0 up to but not including 7.29.0, and 8.0.0 up to but not including 8.9.0 are vulnerable to CRLF injection via the blob-like body 'type' property. This vulnerability allows an attacker to inject CRLF sequences into HTTP headers by passing a duck-typed blob-like body with a crafted '.type' property, potentially enabling HTTP header injection and request smuggling. Native Blob objects are not affected as they sanitize the '.type' property. The issue is fixed in undici versions 6.28.0, 7.29.0, and 8.9.0 and later.

CVSS v3.1

Score 4.2medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected software

npmghsa
undici
Affected versions
<6.28.0
npmghsa
undici
Affected versions
>=7.0.0 <7.29.0
npmghsa
undici
Affected versions
>=8.0.0 <8.9.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/03/2026, 21:24:44 UTC

Technical Analysis

The undici HTTP/1.1 dispatcher improperly handles the '.type' property of duck-typed blob-like bodies by directly inserting it into outgoing HTTP headers without validation. This allows attackers controlling the '.type' property to inject CRLF sequences, enabling HTTP header injection and potentially request smuggling. The vulnerability affects undici versions prior to 6.28.0, versions from 7.0.0 up to 7.29.0, and versions from 8.0.0 up to 8.9.0. Native Blob objects are safe because their constructors sanitize the '.type' property. The issue was patched by adding validation via isValidHeaderValue() in the affected code path. Workarounds include setting an explicit validated content-type header, using native Blob objects, rejecting control characters in the MIME type, or using fetch() APIs instead of non-fetch undici APIs.

Potential Impact

An attacker able to supply a crafted duck-typed blob-like body with a malicious '.type' property can inject CRLF sequences into HTTP headers, potentially appending arbitrary headers and smuggling a second HTTP request past upstream servers. This can lead to HTTP request smuggling attacks, which may bypass security controls or cause unintended behavior. The impact is limited to scenarios where untrusted input controls the '.type' property of a blob-like body passed to undici's HTTP/1.1 dispatcher. The CVSS score is 4.2 (medium severity) reflecting limited impact and attack complexity.

Mitigation Recommendations

A patch is available and users should upgrade to undici versions 6.28.0, 7.29.0, 8.9.0, or later. If upgrading is not immediately possible, mitigations include setting an explicit, validated content-type header on requests to bypass the vulnerable code path, using native Blob objects or fetch-blob which sanitize the '.type' property, rejecting control characters in the MIME type before assigning it to '.type', or using the fetch() API instead of undici's non-fetch APIs. These mitigations prevent injection of CRLF sequences via the '.type' property.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-m8rv-5g2x-5cg5
Osv Schema Version
1.4.0
Aliases
["CVE-2026-15157"]
Ecosystems
["npm"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a710654bf32cb7a343930ba

Added to database: 08/03/2026, 21:21:24 UTC

Last enriched: 08/03/2026, 21:24:44 UTC

Last updated: 08/03/2026, 21:24:44 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses