{"cve":"CVE-2023-45143","nvd":{"published":"2023-10-12T17:15:10.087","modified":"2026-06-17T06:28:18.473","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N","score":3.5},"cwes":["CWE-200"],"references":["https://github.com/nodejs/undici/commit/e041de359221ebeae04c469e8aff4145764e6d76","https://github.com/nodejs/undici/releases/tag/v5.26.2","https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp","https://github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2g","https://hackerone.com/reports/2166948"],"products":["fedoraproject:fedora","nodejs:undici"],"source":"nvd","synced_at":"2026-10-19T21:39:34.467980132+00:00"},"epss":{"cve":"CVE-2023-45143","score":0.01368,"percentile":0.71875,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wqq4-5wpv-mx2g","url":"https://osv.dev/vulnerability/GHSA-wqq4-5wpv-mx2g","summary":"Undici's cookie header not cleared on cross-origin redirect in fetch","modified":"2026-02-04T02:35:56.289390Z","packages":[{"ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":["<5.26.2"],"fixed":["5.26.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}