CVE-2023-45143: Undici's cookie header not cleared on cross-origin redirect in fetch
Vulnerability summary
CVE-2023-45143 is a low (CVSS 3.9) vulnerability in fedoraproject fedora. EPSS estimates a 1.37% chance of exploitation in the next 30 days, higher than 72.8% of scored vulnerabilities.
Not severe (CVSS 3.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 8Timeline
- 12-10-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated3.5LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.5LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated3.5LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated3.9LowCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
- NVDNIST3.5LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:NDiffers
EPSS trend
Probability
1.37%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine3 products
- nodejs< 18.18.2-r0
- nodejs-current< 20.8.1-r0
- openjdk21< 21.0.2_p13-r0
Debian1 product
- node-undici< 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2 | < 5.26.3+dfsg1+~cs23.10.12-1
Fedoraproject1 product
- fedoraEOL37 | 38 | 39
Nodejs1 product
- undici< 5.26.2
Npm1 product
- undici< 5.26.2
Ubuntu1 product
- node-undiciAll versions (No fix recorded)
6 vendors · 8 products
References
23 links- github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2gX Refsource CONFIRMREPORTWEBVendor Advisory
- github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qpX Refsource MISCREPORTWEBNot Applicable
- github.com/nodejs/undici/commit/e041de359221ebeae04c469e8aff4145764e6d76X Refsource MISCREPORTWEBPatch
Show all 23 references
- github.com/nodejs/undiciPACKAGE