GitHub Advisoryadvisory · npm
GHSA-9f24-jqhm-jfcw fetch(url) leads to a memory leak in undici
MEDIUM
Official page ↗
- Aliases
- CVE-2024-24750
- Ecosystem
- npm
- Packages
- undici
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-401
- Reviewed
- 2024-02-16
Affected packages
• npm undici: >= 6.0.0, < 6.6.1 → fixed in 6.6.1
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.
Related
Alias · CVE (1)
- CVE-2024-24750 Undici is an HTTP/1.1 client, written from scratch for Node.js. vulnerability
References
- https://github.com/nodejs/undici/security/advisories/GHSA-9f24-jqhm-jfcw web
- https://nvd.nist.gov/vuln/detail/CVE-2024-24750 advisory
- https://github.com/nodejs/undici/commit/87a48113f1f68f60aa09abb07276d7c35467c663 web
- https://github.com/nodejs/undici package
- https://github.com/nodejs/undici/releases/tag/v6.6.1 web
- https://security.netapp.com/advisory/ntap-20240419-0006 web