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

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.37%, higher than 72% of CVEs (2026-12-01)
- Published: 2023-10-12T16:35:40.637Z
- Modified: 2026-06-17T06:28:18.473Z
- Also known as: GHSA-wqq4-5wpv-mx2g
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nodejs undici: < 5.26.2; before 5.26.2
- undici (npm): before 5.26.2
- fedoraproject fedora: 37; 38; 39

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 3.9 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2g> (vendor-advisory, web)
- <https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp> (not-applicable, web)
- <https://github.com/nodejs/undici/commit/e041de359221ebeae04c469e8aff4145764e6d76> (patch, web)
- <https://hackerone.com/reports/2166948> (permissions-required, web)
- <https://github.com/nodejs/undici/releases/tag/v5.26.2> (release-notes, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ/> (mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45143> (advisory)
- <https://github.com/nodejs/undici> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y> (web)

## Sources

- CVE List: [CVE-2023-45143](https://www.cve.org/CVERecord?id=CVE-2023-45143), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-wqq4-5wpv-mx2g](https://github.com/advisories/GHSA-wqq4-5wpv-mx2g), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-45143](https://nvd.nist.gov/vuln/detail/CVE-2023-45143), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45143 · Whole record: https://cve.day/CVE-2023-45143.json · Rebuilt by cve.day 2026-11-25T22:58:28.714Z
