CRLF Injection Affecting undici package, versions <6.28.0>=7.0.0 <7.29.0>=8.0.0 <8.9.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-UNDICI-18426067
  • published30 Jul 2026
  • disclosed29 Jul 2026
  • creditmcollina

Introduced: 29 Jul 2026

NewCVE-2026-15157  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade undici to version 6.28.0, 7.29.0, 8.9.0 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to CRLF Injection via the writeH1 path in lib/dispatcher/client-h1.js. An attacker can append arbitrary HTTP headers or smuggle a second request by supplying a duck-typed blob-like body whose .type contains \r\n when an application sends it through request(), stream(), pipeline(), or dispatch() without an explicit content-type header. The vulnerable code copies body.type directly into the outgoing content-type header, so the injected newline sequence is written on the wire and processed by the upstream HTTP/1.1 server. This can corrupt request handling and expose or alter requests sent by the user.

CVSS Base Scores

version 4.0
version 3.1