LowGHSA-m4v8-wqvr-p9f7CVE-2024-30260
Undici's Proxy-Authorization header not cleared on cross-origin redirect for dispatch, request, stream, pipeline
Published 4 Apr 2024 · Updated 4 Nov 2025
Affected packages
undicinpm
- Affected
- <5.28.4
- Fixed in
- 5.28.4
Update to the fixed version for your release line, for example:
npm install undici@5.28.4undicinpm
- Affected
- >=6.0.0 <6.11.1
- Fixed in
- 6.11.1
Update to the fixed version for your release line, for example:
npm install undici@6.11.1Details
Impact
Undici cleared Authorization and Proxy-Authorization headers for fetch(), but did not clear them for undici.request().
Patches
This has been patched in https://github.com/nodejs/undici/commit/6805746680d27a5369d7fb67bc05f95a28247d75. Fixes has been released in v5.28.4 and v6.11.1.
Workarounds
use fetch() or disable maxRedirections.
References
Linzi Shang reported this.
- https://hackerone.com/reports/2408074
- https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3
Is GHSA-m4v8-wqvr-p9f7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected undici, and gives you the command that fixes it.
References
- Linkgithub.com/nodejs/undici/security/advisories/GHSA-m4v8-wqvr-p9f7
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-30260
- Linkgithub.com/nodejs/undici/commit/64e3402da4e032e68de46acb52800c9a06aaea3f
- Linkgithub.com/nodejs/undici/commit/6805746680d27a5369d7fb67bc05f95a28247d75
- Linkhackerone.com/reports/2408074
- Packagegithub.com/nodejs/undici
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HQVHWAS6WDXXIU7F72XI55VZ2LTZUB33
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NC3V3HFZ5MOJRZDY5ZELL6REIRSPFROJ
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P6Q4RGETHVYVHDIQGTJGU5AV6NJEI67E
- Linksecurity.netapp.com/advisory/ntap-20240905-0008
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.