undici vulnerable to CRLF Injection via blob-like body 'type' property (CVE-2026-15157)
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.
AI Analysis
Technical Summary
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.
undici vulnerable to CRLF Injection via blob-like body 'type' property (CVE-2026-15157)
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.