Undici's cookie header not cleared on cross-origin redirect in fetch
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
undicinpm | < 5.26.2 | 5.26.2 |
Affected products
23- ghsa-coords22 versionspkg:npm/undicipkg:rpm/almalinux/nodejspkg:rpm/almalinux/nodejs-develpkg:rpm/almalinux/nodejs-docspkg:rpm/almalinux/nodejs-full-i18npkg:rpm/almalinux/nodejs-nodemonpkg:rpm/almalinux/nodejs-packagingpkg:rpm/almalinux/nodejs-packaging-bundlerpkg:rpm/almalinux/npmpkg:rpm/opensuse/nodejs20&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/nodejs-electron&distro=openSUSE%20Tumbleweedpkg:rpm/suse/nodejs16&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP4pkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/nodejs16&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/nodejs16&distro=SUSE%20Manager%20Server%204.2pkg:rpm/suse/nodejs18&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/nodejs18&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP4pkg:rpm/suse/nodejs18&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP5
< 5.26.2+ 21 more
- (no CPE)range: < 5.26.2
- (no CPE)range: < 1:18.18.2-2.module_el9.2.0+43+3ebc9e20
- (no CPE)range: < 1:18.18.2-2.module_el9.2.0+43+3ebc9e20
- (no CPE)range: < 1:18.18.2-2.module_el9.2.0+43+3ebc9e20
- (no CPE)range: < 1:18.18.2-2.module_el9.2.0+43+3ebc9e20
- (no CPE)range: < 3.0.1-1.module_el9.2.0+36+853e48f5
- (no CPE)range: < 2021.06-4.module_el9.1.0+13+d9a595ea
- (no CPE)range: < 2021.06-4.module_el9.1.0+13+d9a595ea
- (no CPE)range: < 1:9.8.1-1.18.18.2.2.module_el9.2.0+43+3ebc9e20
- (no CPE)range: < 20.8.1-1.1
- (no CPE)range: < 25.9.1-2.1
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 16.20.2-8.36.1
- (no CPE)range: < 16.20.2-150400.3.27.2
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 16.20.2-150300.7.30.1
- (no CPE)range: < 18.18.2-8.15.1
- (no CPE)range: < 18.18.2-150400.9.15.1
- (no CPE)range: < 18.18.2-150400.9.15.1
Patches
Vulnerability mechanics
References
19- github.com/advisories/GHSA-wqq4-5wpv-mx2gghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-45143ghsaADVISORY
- github.com/nodejs/undici/commit/e041de359221ebeae04c469e8aff4145764e6d76ghsax_refsource_MISCWEB
- github.com/nodejs/undici/releases/tag/v5.26.2ghsax_refsource_MISCWEB
- github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qpghsax_refsource_MISCWEB
- github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2gghsax_refsource_CONFIRMWEB
- hackerone.com/reports/2166948ghsax_refsource_MISCWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4AghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVUghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBGghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45YghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y/mitre
News mentions
0No linked articles in our index yet.