MediumGHSA-9f24-jqhm-jfcwCVE-2024-24750
fetch(url) leads to a memory leak in undici
Published 16 Feb 2024 · Updated 10 Sept 2026
Affected package
undicinpm
- Affected
- >=6.0.0 <6.6.1
- Fixed in
- 6.6.1
Update to the fixed version for your release line, for example:
npm install undici@6.6.1Details
Impact
Calling fetch(url) and not consuming the incoming body ((or consuming it very slowing) will lead to a memory leak.
Patches
Patched in v6.6.1
Workarounds
Make sure to always consume the incoming body.
Is GHSA-9f24-jqhm-jfcw 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-9f24-jqhm-jfcw
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-24750
- Linkgithub.com/nodejs/undici/commit/87a48113f1f68f60aa09abb07276d7c35467c663
- Packagegithub.com/nodejs/undici
- Linkgithub.com/nodejs/undici/releases/tag/v6.6.1
- Linksecurity.netapp.com/advisory/ntap-20240419-0006
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.