In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade undici to version 7.30.4, 8.14.1 or higher.
undici is an An HTTP/1.1 client, written from scratch for Node.js
Affected versions of this package are vulnerable to Uncaught Exception via unhandled error propagation in the dump and retry interceptors when a dispatcher is composed with both and the application discards a response body via body.dump(). A malicious or faulty server that announces a larger content-length than it actually sends, delivers a partial body, and closes the connection causes the abort reason to be lost before reaching the retry handler. The default retry function then receives undefined and throws while reading it, surfacing as an error event on an internal Client with no listener, which causes the Node.js process to exit. Neither the application's try/catch nor the promise returned by request() catches this error, so a remote, unauthenticated server can crash the process with a single response.
Note: This is only exploitable when a dispatcher is composed with both the dump and retry interceptors and response bodies are discarded using body.dump().
Avoid composing the retry interceptor together with the dump interceptor on dispatchers whose response bodies are discarded, or pass a custom retry function to interceptors.retry() that tolerates a non-object error by returning it instead of reading properties from it.