undici 6, 7 and 8: one bad reply from a server can crash your Node.js app
Anyone whose Node.js code calls fetch() through the undici package, directly or through a library that depends on it, against servers they don't control.
How to fix it
You haveUpdate to
6.23.0 and later, before 6.29.1→6.29.17.18.0 and later, before 7.30.1→7.30.18.0.0 and later, before 8.12.2→8.12.2
Check your version
Which version your project hasnpm ls undici
Update
In your projectnpm update undici npm ls undici
npm explain undici
npm audit
This covers the undici package installed from npm. The sources don't say whether the copy of undici built into Node.js is affected. Catching the fetch() error in your own code doesn't stop the crash, and the maintainers list no workaround.
If npm ls still shows an old version under another package, update that package, or add an "overrides" entry for this one in package.json.