Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-9679

undici: undici vulnerable to HTTP header injection via Set-Cookie percent-decoding

Overview

Published
17 Jun 2026
Modified
25 Jun 2026
Medium CVE
3 Registry packages
72 OS packages
10 Linux distributions
Yes Fix available

Description

Impact:
undici's cookie parser in parseSetCookie percent-decodes cookie values via qsUnescape, turning encoded sequences like %0D%0A, %00, %3B, and %3D into their literal byte equivalents. RFC 6265 §5.4 does not specify any decoding and browsers do not decode either.

Applications that parse a Set-Cookie header and then forward the parsed value into a response header (proxies, middleware, SSR frameworks) become vulnerable to HTTP response header injection: an attacker-controlled upstream can inject arbitrary Set-Cookie, Location, or Cache-Control headers into the application's downstream response, enabling session fixation, open redirect, or cache poisoning.

Affected applications are those that use undici's cookie parsing (parseSetCookie, parseCookie, getSetCookies) and forward the parsed cookie value into a response header.

This was introduced in undici 7.0.0 via PR #3789.

Patches:
Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.

Workarounds:
If upgrade is not immediately possible, do not forward values returned by parseSetCookie/parseCookie/getSetCookies directly into response headers; sanitize the value first to strip or reject CR, LF, NUL, ;, and = bytes.

Source: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Weakness: CWE-93

Affected packages · 3

Packages affected by CVE-2026-9679
EcosystemPackageVulnerableFixed in
npm undici <6.27.0>=7.0.0, <7.28.0>=8.0.0, <8.5.0 6.27.07.28.08.5.0
Seal npm @seal-security/undici >=4.16.0-sp1, <4.16.0-sp999>=6.21.1-sp1, <6.21.1-sp999>=6.23.0-sp1, <6.23.0-sp2>=7.18.2-sp1, <7.18.2-sp999>=7.19.2-sp1, <7.19.2-sp2p2+1 more 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2
Seal npm undici >=4.16.0-sp0, <4.16.0-sp999>=6.21.1-sp0, <6.21.1-sp999>=6.23.0-sp0, <6.23.0-sp2>=7.18.2-sp0, <7.18.2-sp999>=7.19.2-sp0, <7.19.2-sp2p2+1 more 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2

Open a package to see all its vulnerabilities.

Operating systems · 65 fixes

Azure Linux 1 release · 1 package

fixed 1
nodejs
Azure Linux fixes for CVE-2026-9679
ReleasePackageFixed in
3.0 nodejs 0:24.17.0-2.azl3

Red Hat 5 releases · 2 packages

affected 5
openshift4-ose-agent-installer-ui-rhel9 nodejs
Red Hat fixes for CVE-2026-9679
ReleasePackageFixed in
7 openshift4-ose-agent-installer-ui-rhel9 +2 affected
8 nodejs +13 affected
9 openshift4-ose-agent-installer-ui-rhel9 +2 affected
9 (nodejs:22) nodejs +4 affected
9 (nodejs:24) nodejs +4 affected

SUSE Linux Enterprise 6 releases · 6 packages

fixed 10
nodejs18 nodejs20 nodejs22 nodejs24 corepack22 corepack24
SUSE Linux Enterprise fixes for CVE-2026-9679
ReleasePackageFixed inAdvisory
12.5 nodejs18 +3 18.20.8-8.44.1 SUSE-SU-2026:4248-1
15.4 nodejs18 +3 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
15.5 nodejs18 +3 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
15.5 nodejs20 +3 20.20.2-150500.11.30.1 SUSE-SU-2026:3930-1
15.6 nodejs20 +3 20.20.2-150600.3.21.1 SUSE-SU-2026:3929-1
15.6 nodejs22 +3 22.23.0-150600.13.18.1 SUSE-SU-2026:2647-1

4 more rows

amazon linux 1 release · 6 packages

fixed 6
nodejs22-npm nodejs24-npm nodejs22 nodejs24 v8-12-4-devel v8-13-6-devel
amazon linux fixes for CVE-2026-9679
ReleasePackageFixed in
2023 nodejs22-npm 1:10.9.8-1.22.23.1.1.amzn2023.0.1
2023 nodejs24-npm 1:11.16.0-1.24.18.0.1.amzn2023.0.1
2023 nodejs22 +7 1:22.23.1-1.amzn2023.0.1
2023 nodejs24 +7 1:24.18.0-1.amzn2023.0.1
2023 v8-12-4-devel 3:12.4.254.21-1.22.23.1.1.amzn2023.0.1
2023 v8-13-6-devel 3:13.6.233.17-1.24.18.0.1.amzn2023.0.1

chainguard 1 release · 21 packages

fixed 21
gemini-cli py3-captum saf npm node-gyp commercial-gitlab-rails-ee-19-1 +15
chainguard fixes for CVE-2026-9679
ReleasePackageFixed in
gemini-cli 0.49.0-r4
py3-captum 0.9.0-r1
saf 1.6.0-r2
npm 11.17.0-r1
node-gyp 13.0.0-r1
commercial-gitlab-rails-ee-19-1 19.1.7-r3

15 more rows

debian 2 releases · 1 package

affected 1 fixed 1
node-undici
debian fixes for CVE-2026-9679
ReleasePackageFixed in
13 node-undici affected
14 node-undici 8.5.0+dfsg+~cs3.2.0-1

minimos 1 release · 10 packages

fixed 10
npm node-gyp nginx-proxy-manager-2 n8n openclaw langfuse-3 +4
minimos fixes for CVE-2026-9679
ReleasePackageFixed in
npm 11.18.0-r0
node-gyp 13.0.1-r0
nginx-proxy-manager-2 2.15.1-r1
n8n 2.31.5-r0
openclaw 2026.6.9-r0
langfuse-3 3.194.0-r0

4 more rows

openSUSE 1 release · 1 package

fixed 1
corepack24
openSUSE fixes for CVE-2026-9679
ReleasePackageFixed inAdvisory
Tumbleweed corepack24 +4 24.17.0-1.1 openSUSE-SU-2026:11121-1

openSUSE Leap 1 release · 2 packages

fixed 2
corepack22 corepack24
openSUSE Leap fixes for CVE-2026-9679
ReleasePackageFixed inAdvisory
16.0 corepack22 +4 22.23.0-160000.1.1 openSUSE-SU-2026:21058-1
16.0 corepack24 +4 24.18.0-160000.1.1 openSUSE-SU-2026:21236-1

wolfi 1 release · 7 packages

fixed 7
saf npm node-gyp vitess-24 code-server renovate +1
wolfi fixes for CVE-2026-9679
ReleasePackageFixed in
saf 1.6.0-r2
npm 11.17.0-r1
node-gyp 13.0.0-r1
vitess-24 24.0.3-r7
code-server 4.125.0-r2
renovate 43.249.5-r2

1 more row

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.