Description
Undici is an HTTP/1.1 client for Node.js. Prior to versions 5.29.0, 6.21.2, and 7.5.0, applications that use undici to implement a webhook-like system are vulnerable. If the attacker set up a server with an invalid certificate, and they can force the application to call the webhook repeatedly, then they can cause a memory leak. This has been patched in versions 5.29.0, 6.21.2, and 7.5.0. As a workaound, avoid calling a webhook repeatedly if the webhook fails.
Problem types
CWE-401: Missing Release of Memory after Effective Lifetime
Product status
>= 6.0.0, < 6.21.2
>= 7.0.0, < 7.5.0
References
github.com/...undici/security/advisories/GHSA-cxrh-j4jr-qwg3
github.com/nodejs/undici/issues/3895
github.com/nodejs/undici/pull/4088
github.com/...ommit/f317618ec28753a4218beccea048bcf89c36db25