undici Denial of Service attack via bad certificate data
Package
Affected versions
< 5.29.0
>= 6.0.0, < 6.21.2
>= 7.0.0, < 7.5.0
Patched versions
5.29.0
6.21.2
7.5.0
Description
Published to the GitHub Advisory Database
May 15, 2025
Reviewed
May 15, 2025
Published by the National Vulnerability Database
May 15, 2025
Last updated
May 16, 2025
Impact
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.
Patches
This has been patched in nodejs/undici#4088.
Workarounds
If a webhook fails, avoid keep calling it repeatedly.
References
Reported as: nodejs/undici#3895
References