CVEfocus › CVE database › CVE-2026-9679

CVE-2026-9679undici vulnerable to HTTP header injection via Set-Cookie percent-decoding

CVSS 5.9 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2026-06-17Updated 2026-06-23Assigner: openjs

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.

CWE-93

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
31Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-undiciFix pendingUBUNTU-CVE-2026-9679
Ubuntu 26.04node-undiciUnder investigationUBUNTU-CVE-2026-9679
Ubuntu 25.10node-undiciWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-9679
Ubuntu 24.04node-undiciUnder investigationUBUNTU-CVE-2026-9679
Debian 14node-undiciFixed8.5.0+dfsg+~cs3.2.0-1DEBIAN-CVE-2026-9679
Debian 13node-undiciFix pendingDEBIAN-CVE-2026-9679
Red Hat Enterprise Linux 10nodejsFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs-develFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs-full-i18nFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs-npmFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs22Fix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24Fix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24-develFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24-full-i18nFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10nodejs24-npmFix pending
Fix deferred
Red Hat Enterprise Linux 9nodejsFix pending
Fix deferred
Red Hat Enterprise Linux 9nodejs-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9nodejs-full-i18nFix pending
Fix deferred
Red Hat Enterprise Linux 9nodejs-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9npmFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejsFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-develFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-full-i18nFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-nodemonFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-packagingFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFix pending
Fix deferred
Red Hat Enterprise Linux 8npmFix pending
Fix deferred
Red Hat Enterprise Linux 8v8-12.4-develFix pending
Fix deferred
Red Hat Enterprise Linux 8v8-13.6-develFix pending
Fix deferred
npm libraryundiciFixed7.28.0GHSA-p88m-4jfj-68fv

What the vendor says

As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.