VDB
KO
MEDIUM 6.5

GHSA-9f24-jqhm-jfcw

fetch(url) leads to a memory leak in undici

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / undici
Introduced in: 6.0.0 Fixed in: 6.6.1
Fix npm install undici@6.6.1

References