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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-45143— Undici's cookie header not cleared on cross-origin redirect in fetch

Quick assessment

Affected
nodejs 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.

undici是一个HTTP/1.1客户端。 Undici 存在信息泄露漏洞,该漏洞源于没有清除Cookie标头,可能会导致 cookie 意外泄漏到第三方站点,或者导致可以控制重定向目标(即开放重定向器)以将 cookie 泄漏到第三方站点的恶意攻击者。

CVSS 3.9 · Low EPSS 1.25% · P68

Possible ATT&CK Techniques 1 AI

T1530 · Data from Cloud Storage
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-45143

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's cookie header not cleared on cross-origin redirect in fetch
Source: CVE Program / CVE List V5
Vulnerability Description
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear `Cookie` headers. By design, `cookie` headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
undici 信息泄露漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
undici是一个HTTP/1.1客户端。 Undici 存在信息泄露漏洞,该漏洞源于没有清除Cookie标头,可能会导致 cookie 意外泄漏到第三方站点,或者导致可以控制重定向目标(即开放重定向器)以将 cookie 泄漏到第三方站点的恶意攻击者。
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
nodejs undici < 5.26.2 -

II. Public POCs for CVE-2023-45143

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-45143

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

Patches & Fixes for CVE-2023-45143 (1)

Vendor Advisories for CVE-2023-45143 (2)

Mailing List Discussions for CVE-2023-45143 (6)

Other References for CVE-2023-45143 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2023-45143

No comments yet


Leave a comment