GitHub Advisory Database
GHSA-9f24-jqhm-jfcw
fetch(url) leads to a memory leak in undici
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | undici | From 6.0.0 before 6.6.1 (fixed in 6.6.1) |
References
- https://github.com/nodejs/undici/security/advisories/GHSA-9f24-jqhm-jfcw
- https://nvd.nist.gov/vuln/detail/CVE-2024-24750
- https://github.com/nodejs/undici/commit/87a48113f1f68f60aa09abb07276d7c35467c663
- https://github.com/nodejs/undici
- https://github.com/nodejs/undici/releases/tag/v6.6.1
- https://security.netapp.com/advisory/ntap-20240419-0006