CVE-2026-9679

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

MEDIUM
5.9
CVSS Score
Published: June 17, 2026 at 04:56 PM UTC
Updated: June 27, 2026 at 11:41 AM UTC
2 products affected across 2 vendorsUndiciUndici

Using undici by undici?

Get instant alerts when new vulnerabilities affect undici - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.27.07.0.0 ≤ v < 7.28.08.0.0 ≤ v < 8.5.0
Affected range stops below 6.27.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.28.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.5.0, so it looks safe — our inference, not a vendor statement
v < 6.26.07.0.0 ≤ v < 7.28.08.0.0 ≤ v < 8.5.07.0.08.0.0
Vendor states this is fixed in 6.26.0 (unaffected)
Vendor states this is fixed in 7.28.0 (unaffected)
Vendor states this is fixed in 8.5.0 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.9MEDIUMopenjs
Vector?

Quick Info

StatusANALYZED
CWE
CWE-93

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card