Skip to content
Fencer Vulns
low 3.9

CVE-2023-45143 json

Undici's cookie header not cleared on cross-origin redirect in fetch

published 2023-10-12 3 y ago modified 2026-06-17 4 mo ago also GHSA-wqq4-5wpv-mx2g , EUVD-2023-2832

cvss
3.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 72%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm undici 5.26.2
  • nodejs undici 5.26.2
  • node-undici Debian 12 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2
  • node-undici Debian 14, Debian 13 5.26.3+dfsg1+~cs23.10.12-1

debian advisories DEBIAN-CVE-2023-45143

  • npm RHEL 8 1:10.1.0-1.20.8.1.1.module+el8.9.0+20473+c4e3d824
  • nodejs RHEL 8 1:20.8.1-1.module+el8.9.0+20473+c4e3d824
  • nodejs-nodemon RHEL 8 3.0.1-1.module+el8.9.0+20473+c4e3d824
  • nodejs-full-i18n RHEL 8 1:20.8.1-1.module+el8.9.0+20473+c4e3d824
  • nodejs-packaging RHEL 8 2021.06-4.module+el8.9.0+19519+e25b965a
  • nodejs-packaging-bundler RHEL 8 2021.06-4.module+el8.9.0+19519+e25b965a
  • npm RHEL 8 1:9.8.1-1.18.18.2.1.module+el8.8.0+20407+c11d40bd
  • nodejs RHEL 8 1:18.18.2-1.module+el8.8.0+20407+c11d40bd

red hat advisories RHSA-2023:7205RHSA-2023:5869RHSA-2023:5849

  • nodejs16 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +3 more 16.20.2-150300.7.30.1
  • nodejs16 SLE Module for Web and Scripting 15 SP4 16.20.2-150400.3.27.2
  • nodejs16 SLE Module for Web and Scripting 12 16.20.2-8.36.1
  • nodejs18 SLE Module for Web and Scripting 15 SP5, SLE Module for Web and Scripting 15 SP4 18.18.2-150400.9.15.1
  • nodejs18 SLE Module for Web and Scripting 12 18.18.2-8.15.1

suse advisories SUSE-SU-2023:4207-1SUSE-SU-2023:4155-1SUSE-SU-2023:4150-1SUSE-SU-2023:4133-1SUSE-SU-2023:4132-1

  • nodejs20 openSUSE Tumbleweed 20.8.1-1.1
  • nodejs-electron openSUSE Tumbleweed 25.9.1-2.1

opensuse advisories openSUSE-SU-2024:13337-1openSUSE-SU-2024:13340-1

  • npm AlmaLinux 8 1:10.1.0-1.20.8.1.1.module_el8.9.0+3675+0258a6d9
  • nodejs AlmaLinux 8 1:20.8.1-1.module_el8.9.0+3675+0258a6d9
  • nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.9.0+3675+0258a6d9
  • nodejs-full-i18n AlmaLinux 8 1:20.8.1-1.module_el8.9.0+3675+0258a6d9
  • nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.9.0+3684+11b9e959
  • nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.9.0+3684+11b9e959
  • npm AlmaLinux 9 1:9.8.1-1.18.18.2.2.module_el9.2.0+43+3ebc9e20
  • nodejs AlmaLinux 9 1:18.18.2-2.module_el9.2.0+43+3ebc9e20

almalinux advisories ALSA-2023:7205ALSA-2023:5849ALSA-2023:5869

  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.7.0+40017+f0db1785
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.7.0+40018+a011993d
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.7.0+40022+9ecc286c
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40022+9ecc286c
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40025+0e0cf6b2
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40018+a011993d
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40017+f0db1785
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1824+532140ee

rocky linux advisories RLSA-2023:5849RLSA-2023:5869RLSA-2023:7205

  • nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 18.18.2-r0
  • openjdk21 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 21.0.2_p13-r0
  • nodejs-current Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 20.8.1-r0

alpine advisories ALPINE-CVE-2023-45143

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nodejs18 CBL-Mariner 2.0 18.18.2-2

azure linux advisories AZL-31338

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-45143 updated cvss 3.9

node-undici: cookie leakage

  • Red Hat OpenShift Serverless node-undici node-undici Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat OpenShift Dev Spaces devspaces/dashboard-rhel8 Red Hat Software Collections rh-nodejs14-npm, rh-nodejs14-nodejs, rh-nodejs14-nodejs-full-i18n
    affected: workaround, no fix available “No current mitigation is available.”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 20.8.1-1.module+el8.9.0+20473+c4e3d824, nodejs 18.18.2-1.module+el8.8.0+20407+c11d40bd, npm 10.1.0-1.20.8.1.1.module+el8.9.0+20473+c4e3d824, npm 9.8.1-1.18.18.2.1.module+el8.8.0+20407+c11d40bd, nodejs-nodemon 3.0.1-1.module+el8.8.0+19757+8ca87034, nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824, +6 more
    fixed: vendor fix “No current mitigation is available.” RHSA-2023:5869
  • Red Hat Enterprise Linux AppStream (v. 9) nodejs 18.18.2-2.module+el9.2.0.z+20408+7cb5fda5, npm 9.8.1-1.18.18.2.2.module+el9.2.0.z+20408+7cb5fda5, nodejs-nodemon 3.0.1-1.module+el9.2.0.z+19753+58118bc0, nodejs-packaging 2021.06-4.module+el9.1.0+15718+e52ec601, nodejs-full-i18n 18.18.2-2.module+el9.2.0.z+20408+7cb5fda5, nodejs-packaging-bundler 2021.06-4.module+el9.1.0+15718+e52ec601
    fixed: vendor fix “No current mitigation is available.” RHSA-2023:5849
  • Red Hat RHDH 1.1 for RHEL 9 rhdh/rhdh-hub-rhel9 1.1-97
    fixed: vendor fix “No current mitigation is available.” RHEA-2024:1366
  • Red Hat Developer Hub 1 rhdh-operator-container Red Hat RHDH 1.1 for RHEL 9 rhdh/rhdh-rhel9-operator 1.1-85, rhdh/rhdh-operator-bundle 1.1-118
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.37% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 3.9 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
NVD 3.1 3.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
GitHub 3.1 3.9 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
npm undici
<5.26.2
5.26.2

Affected products

  • nodejs undici

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.