You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
fetch(url) leads to a memory leak in undici
Moderate severity
GitHub Reviewed
Published
Feb 16, 2024
in
nodejs/undici
•
Updated Mar 20, 2026
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
Learn more on MITRE.
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