nodemailer is vulnerable to Denial of Service (DoS)
65
CVE Score
Medium
Denial of Service (DoS)
Nodemailer's DKIM message parser unfolds RFC 5322 header continuation lines by repeatedly concatenating each new line onto the previous line and re-testing a continuation regex against the growing merged string. Signing a message whose header folds into many continuation lines, most commonly a large recipient list, drives this re-scan into O(n^2) CPU and blocks the single threaded Node.js event loop for several seconds. The cost scales with how many continuation lines the signed header folds into, so a user controlled recipient list or custom header can trigger it. The fix unfolds headers in a single forward pass that tests each freshly split line only once.
Upgrade the nodemailer library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you DKIM-sign outbound messages whose headers can fold into many continuation lines, such as a large recipient list.
3.0.0 - 10.0.9
Fixed in 10.0.10nodemailer is vulnerable to Denial of Service (DoS) in versions 3.0.0 - 10.0.9.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.