CVE-2024-24750: fetch(url) leads to a memory leak in undici
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.
Published Feb 16, 2024 · Updated Mar 20, 2026
Affected packages
undici
- Ecosystem
- npm
- Affected
- >= 6.0.0, <= 6.6.0
- Fixed in
- 6.6.1
- Check
npm ls undici
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to mcollina.
References
- https://github.com/nodejs/undici/security/advisories/GHSA-9f24-jqhm-jfcw
- https://github.com/nodejs/undici/commit/87a48113f1f68f60aa09abb07276d7c35467c663
- https://github.com/nodejs/undici/releases/tag/v6.6.1
- https://nvd.nist.gov/vuln/detail/CVE-2024-24750
- https://security.netapp.com/advisory/ntap-20240419-0006
- https://github.com/advisories/GHSA-9f24-jqhm-jfcw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-109383
undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
high7.4Oct 27, 2026CVE-2026-109829
undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
high7.4Oct 27, 2026CVE-2026-109855
undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshake
high7.5Oct 27, 2026CVE-2026-109932
undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
medium5.9Oct 27, 2026CVE-2026-87018
undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
high7.5Oct 27, 2026CVE-2026-87029
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
medium5.9Oct 27, 2026
