ADVISORIES

GitHub Advisory Database

GHSA-cxrh-j4jr-qwg3

undici Denial of Service attack via bad certificate data

Details

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 https://github.com/nodejs/undici/pull/4088.

Workarounds

If a webhook fails, avoid keep calling it repeatedly.

References

Reported as: https://github.com/nodejs/undici/issues/3895

Affected packages

EcosystemPackageAffected versions
npmundici
All versions before 5.29.0 (fixed in 5.29.0)
npmundici
From 6.0.0 before 6.21.2 (fixed in 6.21.2)
npmundici
From 7.0.0 before 7.5.0 (fixed in 7.5.0)

References