MediumGHSA-9f24-jqhm-jfcwCVE-2024-24750

fetch(url) leads to a memory leak in undici

Published 16 Feb 2024 · Updated 10 Sept 2026

Affected package

Affected
>=6.0.0 <6.6.1
Fixed in
6.6.1
Update to the fixed version for your release line, for example:npm install undici@6.6.1

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.

Is GHSA-9f24-jqhm-jfcw in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected undici, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.