3.9

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

Modified
AliasesALPINE-CVE-2023-45143UBUNTU-CVE-2023-45143DEBIAN-CVE-2023-45143
Published 12-10-2023Last modified 13-02-2025

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.

Priority
Routine

Not severe (CVSS 3.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
3.9/10
010
Low · v3.1 (CVE.org)
EPSS score
1.37%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 11 · Related 8

Timeline

  1. 12-10-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Nodejs1 product
Npm1 product
  • undici< 5.26.2
Ubuntu1 product
  • node-undiciAll versions (No fix recorded)

6 vendors · 8 products

References

23 links
Show all 23 references