CVE-2023-45143
Summary
| CVE | CVE-2023-45143 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-10-12 17:15:00 UTC |
| Updated | 2023-11-03 22:15:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-200
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Merge pull request from GHSA-wqq4-5wpv-mx2g · nodejs/undici@e041de3 · GitHub | MISC | github.com | |
| HackerOne | MISC | hackerone.com | |
| [SECURITY] Fedora 38 Update: nodejs18-18.18.2-1.fc38 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| [SECURITY] Fedora 39 Update: nodejs18-18.18.2-1.fc39 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| Cookies uncleared on cross-host / cross-origin redirect · Advisory · nodejs/undici · GitHub | MISC | github.com | |
| [SECURITY] Fedora 37 Update: nodejs18-18.18.2-1.fc37 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| Release v5.26.2 · nodejs/undici · GitHub | MISC | github.com | |
| [SECURITY] Fedora 37 Update: nodejs20-20.8.1-1.fc37 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| [SECURITY] Fedora 38 Update: nodejs20-20.8.1-1.fc38 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| Cookie header not cleared on cross-origin redirect in fetch · Advisory · nodejs/undici · GitHub | MISC | github.com | |
| [SECURITY] Fedora 39 Update: nodejs20-20.8.1-1.fc39 - package-announce - Fedora Mailing-Lists | MISC | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 161007 Oracle Enterprise Linux Security Update for 18 (ELSA-2023-5849)
- 161010 Oracle Enterprise Linux Security Update for nodejs:18 (ELSA-2023-5869)
- 161192 Oracle Enterprise Linux Security Update for nodejs:20 (ELSA-2023-7205)
- 242376 Red Hat Update for nodejs:18 (RHSA-2023:5849)
- 242385 Red Hat Update for nodejs:18 (RHSA-2023:5869)
- 242429 Red Hat Update for nodejs:20 (RHSA-2023:7205)
- 284660 Fedora Security Update for nodejs18 (FEDORA-2023-d5030c983c)
- 284672 Fedora Security Update for nodejs20 (FEDORA-2023-f66fc0f62a)
- 284673 Fedora Security Update for nodejs20 (FEDORA-2023-4d2fd884ea)
- 284674 Fedora Security Update for nodejs18 (FEDORA-2023-e9c04d81c1)
- 285187 Fedora Security Update for nodejs20 (FEDORA-2023-7b52921cae)
- 285188 Fedora Security Update for nodejs18 (FEDORA-2023-dbe64661af)
- 296106 Oracle Solaris 11.4 Support Repository Update (SRU) 64.157.2 Missing (CPUOCT2023)
- 356619 Amazon Linux Security Advisory for nodejs : ALAS2023-2023-412
- 378951 Node.js Multiple Security Vulnerabilties (October 13, 2023 Security Release)
- 503388 Alpine Linux Security Update for nodejs-current
- 503389 Alpine Linux Security Update for nodejs
- 505901 Alpine Linux Security Update for nodejs
- 506129 Alpine Linux Security Update for nodejs-current
- 510683 Alpine Linux Security Update for openjdk21
- 755122 SUSE Enterprise Linux Security Update for nodejs18 (SUSE-SU-2023:4133-1)
- 755131 SUSE Enterprise Linux Security Update for nodejs18 (SUSE-SU-2023:4155-1)
- 755167 SUSE Enterprise Linux Security Update for nodejs18 (SUSE-SU-2023:4207-1)
- 907479 Common Base Linux Mariner (CBL-Mariner) Security Update for nodejs18 (31338)
- 907518 Common Base Linux Mariner (CBL-Mariner) Security Update for nodejs18 (31338-1)
- 941306 AlmaLinux Security Update for nodejs:18 (ALSA-2023:5869)
- 941309 AlmaLinux Security Update for nodejs:18 (ALSA-2023:5849)
- 941479 AlmaLinux Security Update for nodejs:20 (ALSA-2023:7205)
- 961085 Rocky Linux Security Update for nodejs:20 (RLSA-2023:7205)
- 995583 NodeJs (Npm) Security Update for undici (GHSA-wqq4-5wpv-mx2g)