fetch(url) leads to a memory leak in undici
Description
Published to the GitHub Advisory Database
Feb 16, 2024
Reviewed
Feb 16, 2024
Published by the National Vulnerability Database
Feb 16, 2024
Last updated
Dec 17, 2024
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.
References