nodejs/undici · Security
fetch(url) leads to a memory leak in undici
- GHSA ID
- GHSA-9f24-jqhm-jfcw
- CVE ID
- CVE-2024-24750
- Severity
- medium
- Published
- Updated
- CVSS
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CVSS v3
- 6.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Description
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.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
- CWE-401 · Missing Release of Memory after Effective Lifetime
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 ↗