CVE-2023-45143
node-undici: cookie leakage
Overview
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: OX vulnerability database
Severity
3.5 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
Weakness: CWE-200
Affected packages · 3
Operating systems · 86 fixes
Oracle Linux 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:10.1.0-1.20.8.1.1.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs +3 | 1:20.8.1-1.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs-packaging +1 | 2021.06-4.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs-nodemon | 3.0.1-1.module+el8.9.0+90082+b6a613a6 |
| 9 | nodejs +3 | 1:18.18.2-2.module+el9.2.0+21194+c0bbf6cf |
| 9 | npm | 1:9.8.1-1.18.18.2.2.module+el9.2.0+21194+c0bbf6cf |
2 more rows
Red Hat 7 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs14-nodejs +4 | affected | — |
| 8 (nodejs:16) | nodejs +10 | affected | — |
| 8 (nodejs:18) | nodejs-packaging +1 | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:5869 |
| 8 (nodejs:18) | nodejs-nodemon | 0:3.0.1-1.module+el8.8.0+19757+8ca87034 | RHSA-2023:5869 |
| 8 (nodejs:18) | nodejs +3 | 1:18.18.2-1.module+el8.8.0+20407+c11d40bd | RHSA-2023:5869 |
| 8 (nodejs:18) | npm | 1:9.8.1-1.18.18.2.1.module+el8.8.0+20407+c11d40bd | RHSA-2023:5869 |
10 more rows
SUSE Linux Enterprise 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nodejs16 +3 | 16.20.2-150400.3.27.2 | SUSE-SU-2023:4155-1 |
| 15.4 | nodejs18 +3 | 18.18.2-150400.9.15.1 | SUSE-SU-2023:4133-1 |
| 15.5 | nodejs18 +3 | 18.18.2-150400.9.15.1 | SUSE-SU-2023:4133-1 |
alma 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | nodejs +3 | 1:18.18.2-1.module_el8.8.0+3652+0e111ba0 |
| 8 (nodejs:18) | npm | 1:9.8.1-1.18.18.2.1.module_el8.8.0+3652+0e111ba0 |
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d |
| 8 (nodejs:20) | npm | 1:10.1.0-1.20.8.1.1.module_el8.9.0+3675+0258a6d9 |
| 8 (nodejs:20) | nodejs +3 | 1:20.8.1-1.module_el8.9.0+3675+0258a6d9 |
6 more rows
alpine 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 18.18.2-r0 |
| 3.22 | nodejs-current | 20.8.1-r0 |
| 3.22 | openjdk21 | 21.0.2_p13-r0 |
| 3.23 | nodejs | 18.18.2-r0 |
| 3.23 | nodejs-current | 20.8.1-r0 |
| 3.23 | openjdk21 | 21.0.2_p13-r0 |
6 more rows
amazon linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs +7 | 1:18.18.2-1.amzn2023.0.1 |
| 2023 | nodejs-npm | 1:9.8.1-1.18.18.2.1.amzn2023.0.1 |
| 2023 | v8-10-2-devel | 3:10.2.154.26-1.18.18.2.1.amzn2023.0.1 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2 |
| 13 | node-undici | 5.26.3+dfsg1+~cs23.10.12-1 |
| 14 | node-undici | 5.26.3+dfsg1+~cs23.10.12-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack20 +4 | 20.8.1-1.1 | openSUSE-SU-2024:13337-1 |
| Tumbleweed | nodejs-electron +2 | 25.9.1-2.1 | openSUSE-SU-2024:13340-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module+el8.7.0+1072+5b168780 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module+el8.8.0+1459+02651ab6 |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+1667+4a788d89 |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+1823+b5789597 |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+1824+532140ee |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+1924+614dc87f |
19 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:5849
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7205
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-45143
- bugzilla.redhat.com https://bugzilla.redhat.com/2242803
- bugzilla.redhat.com https://bugzilla.redhat.com/2244104
- bugzilla.redhat.com https://bugzilla.redhat.com/2244415
- bugzilla.redhat.com https://bugzilla.redhat.com/2244418
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2242803
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244104
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244413
Show all 44 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244414
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244415
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244418
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-38552
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39331
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39332
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39333
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-44487
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45143
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-5849.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:7205
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/e041de359221ebeae04c469e8aff4145764e6d76
- github.com https://github.com/nodejs/undici/releases/tag/v5.26.2
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2g
- hackerone.com https://hackerone.com/reports/2166948
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-45143.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-7205.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-45143
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-45143
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.