Skip to content
Noroxi
CVE-2026-9679· NVD / CVE Program· CNA openjs

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

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.

MediumCVSS 5.9 · v3.1—No exploit Fix available
Published
Jun 17, 2026
Updated
Jun 25, 2026
EPSS
0.3% · 24th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

23

Monitor

Low priority for now.

CVSS
23 / 40 · 5.9 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · openjs
5.9
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
nodejsundici

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • nodejs undicibefore 6.27.0
  • nodejs undici7.0.0 and later · before 7.28.0
  • nodejs undici8.0.0 and later · before 8.5.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (openjs). Independent of NVD's CPE analysis and usually ahead of it.

  • undici undici

    • 6.26.0, 7.28.0, 8.5.0not affected
    • before 6.26.0affected · semver
    • 7.0.0 and later · before 7.28.0affected · semver
    • 8.0.0 and later · before 8.5.0affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:13node-undiciall versions—
Debian:14node-undicibefore 8.5.0+dfsg+~cs3.2.0-18.5.0+dfsg+~cs3.2.0-1
npmundicifrom 7.0.0 · before 7.28.07.28.0
npmundicifrom 8.0.0 · before 8.5.08.5.0
npmundicibefore 6.27.06.27.0
Red Hat:hummingbird:1nodejs24before 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-binbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-develbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-docsbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-full-i18nbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-libsbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs24-npmbefore 0:11.16.0-1.24.18.0.0.3.hum10:11.16.0-1.24.18.0.0.3.hum1
Red Hat:hummingbird:1nodejs24-npm-binbefore 0:24.18.0-0.3.hum10:24.18.0-0.3.hum1
Red Hat:hummingbird:1nodejs26before 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-binbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-develbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-docsbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-full-i18nbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-libsbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1nodejs26-npmbefore 0:11.17.0-1.26.5.0.1.3.hum10:11.17.0-1.26.5.0.1.3.hum1
Red Hat:hummingbird:1nodejs26-npm-binbefore 0:26.5.0-1.3.hum10:26.5.0-1.3.hum1
Red Hat:hummingbird:1v8-13.6-develbefore 0:13.6.233.17-1.24.18.0.0.3.hum10:13.6.233.17-1.24.18.0.0.3.hum1
SUSE:Linux Enterprise Module for Web and Scripting 15 SP7nodejs22before 22.23.0-150700.3.12.122.23.0-150700.3.12.1
SUSE:Linux Enterprise Server 15 SP6-LTSSnodejs22before 22.23.0-150600.13.18.122.23.0-150600.13.18.1

Other highest-scoring records for the same primary product.

  • CVE-2022-35949`undici.request` vulnerable to SSRF using absolute URL on `pathname`
    40Plan
  • CVE-2026-1525undici is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
    39Monitor
  • CVE-2026-84961undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool
    36Monitor
  • CVE-2026-13697undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directives
    36Monitor
  • CVE-2026-6734undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse
    35Monitor
  • CVE-2026-84933undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
    32Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
undici undici6.26.0Vendor (CNA)
undici undici7.28.0Vendor (CNA)
undici undici8.5.0Vendor (CNA)
debian:node-undici8.5.0+dfsg+~cs3.2.0-1 · Debian:14Package registry (OSV)
npm:undici6.27.0Package registry (OSV)
npm:undici7.28.0Package registry (OSV)
npm:undici8.5.0Package registry (OSV)
red hat:nodejs240:24.18.0-0.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs24-bin0:24.18.0-0.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs24-devel0:24.18.0-0.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs24-docs0:24.18.0-0.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs260:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-bin0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-devel0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-docs0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-full-i18n0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-libs0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-npm0:11.17.0-1.26.5.0.1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:nodejs26-npm-bin0:26.5.0-1.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
suse:nodejs2222.23.0-150600.13.18.1 · SUSE:Linux Enterprise Server 15 SP6-LTSSPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-1515742 days apartundici vulnerable to CRLF Injection via blob-like body 'type' property
    21Monitor
  • CVE-2026-152797 days apartundici is vulnerable to CRLF Injection via upgrade option
    18Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
High
Availability impact
None

CVSS vector

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

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records