GitHub Advisoryadvisory · npm

GHSA-9f24-jqhm-jfcw fetch(url) leads to a memory leak in undici

MEDIUM Published 2024-02-16 Modified 2024-04-19 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

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-401 Missing Release of Memory after Effective Lifetime weakness

References