Improper Neutralization Affecting undici package, versions <6.28.0>=7.0.0 <7.29.0>=8.0.0 <8.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th 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 IDSNYK-JS-UNDICI-18426061
  • published30 Jul 2026
  • disclosed29 Jul 2026
  • creditZelys-DFKH

Introduced: 29 Jul 2026

NewCVE-2026-16729  (opens in a new tab)
CWE-142  (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 Improper Neutralization via unsanitized domain handling and unparsed attribute serialization in lib/web/cookies/util.js. An attacker can inject or override cookie attributes by supplying a crafted domain such as example.com; SameSite=None or an unparsed entry such as X-Custom=val; HttpOnly to setCookie. When applications pass user-controlled tenant or routing data into these fields, the serialized Set-Cookie header can carry attacker-chosen flags like SameSite, Secure, or HttpOnly. This can weaken CSRF protections, alter cookie visibility to scripts, or change how the browser sends the cookie.

CVSS Base Scores

version 4.0
version 3.1