Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
undici undici
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Node.js undici是Node.js基金会开源的一个HTTP/1.1客户端。 Node.js undici 6.26.0之前版本、7.0.0至7.28.0之前版本、8.0.0至8.5.0之前版本存在 输入验证错误漏洞,该漏洞源于parseSetCookie函数中的cookie解析器通过qsUnescape对cookie值进行百分号解码,将%0D%0A、%00、%3B、%3D等编码序列转换为原始字节,解析Set-Cookie标头并将解析值转发到响应标头的应用程序容易受到HTTP响应标头注入攻击,可能

CVSS 5.9 · Medium EPSS 0.26% · P18

Possible ATT&CK Techniques 1 AI

T1557 · Adversary-in-the-Middle

Affected Version Matrix 6

VendorProduct Version RangeStatus
undici undici < 6.26.0 affected
6.26.0 unaffected
7.0.0< 7.28.0 affected
7.28.0 unaffected
8.0.0< 8.5.0 affected
8.5.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-9679

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
undici vulnerable to HTTP header injection via Set-Cookie percent-decoding
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对CRLF序列的转义处理不恰当(CRLF注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Node.js undici 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Node.js undici是Node.js基金会开源的一个HTTP/1.1客户端。 Node.js undici 6.26.0之前版本、7.0.0至7.28.0之前版本、8.0.0至8.5.0之前版本存在 输入验证错误漏洞,该漏洞源于parseSetCookie函数中的cookie解析器通过qsUnescape对cookie值进行百分号解码,将%0D%0A、%00、%3B、%3D等编码序列转换为原始字节,解析Set-Cookie标头并将解析值转发到响应标头的应用程序容易受到HTTP响应标头注入攻击,可能
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
undici undici 0 ~ 6.26.0 -

II. Public POCs for CVE-2026-9679

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-9679

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-9679 (1)

Same Patch Batch · undici · 2026-06-17 · 8 CVEs total

CVE-2026-9675 7.5 HIGH undici WebSocket client vulnerable to denial of service via cumulative fragment bypass
CVE-2026-12151 7.5 HIGH undici WebSocket client vulnerable to denial of service via fragment count bypass
CVE-2026-6734 7.5 HIGH undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse
CVE-2026-9697 7.4 HIGH undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 Pr
CVE-2026-9678 5.9 MEDIUM undici vulnerable to cross-user information disclosure via shared cache whitespace bypass
CVE-2026-6733 3.7 LOW undici vulnerable to HTTP response queue poisoning via keep-alive socket reuse
CVE-2026-11525 3.7 LOW undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matc

IV. Related Vulnerabilities