CRLF Injection Affecting undici package, versions <6.27.0>=7.0.0 <7.28.0>=8.0.0 <8.5.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th 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-17372658
  • published18 Jun 2026
  • disclosed17 Jun 2026
  • creditByunSuyoung

Introduced: 17 Jun 2026

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

How to fix?

Upgrade undici to version 6.27.0, 7.28.0, 8.5.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 in the parseSetCookie. An attacker can inject arbitrary HTTP headers by supplying specially crafted percent-encoded values in the Set-Cookie header, which are improperly decoded and then forwarded into response headers. This can enable actions such as session fixation, open redirect, or cache poisoning.

Note: This is only exploitable if the application parses Set-Cookie headers using the affected function and then forwards the parsed value into a response header without proper sanitization.

Workaround

This vulnerability can be mitigated by sanitizing the values returned by the affected cookie parsing functions to strip or reject CR, LF, NUL, ;, and = bytes before forwarding them into response headers.

CVSS Base Scores

version 4.0
version 3.1