Intel

AIKIDO-2026-645479

nodemailer is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-8vvx-rff5-p5rq Published 4 days ago

80

High Risk

This Affects:

JSnodemailer
2.7.2 - 10.0.1
Fixed in 10.0.2
Are you affected? Scan for Free

TL;DR

Nodemailer's MimeNode._parseAddresses flattened only the outermost layer of recipient arrays in to, cc, and bcc, then handed any still-nested array to addressparser, which stringifies it. The native array-to-string conversion recurses once per nesting level, so a deeply nested or self-referential recipient value exhausts the V8 call stack and throws RangeError: Maximum call stack size exceeded before the maxRecipients limit applies. The uncaught throw escaped sendMail and could terminate the Node.js process. The fix walks arrays iteratively with a cycle guard and routes compile-time errors to the callback.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and recipient fields can contain externally influenced nested array values.

Background info

nodemailer is vulnerable to Denial of Service (DoS) in versions 2.7.2 - 10.0.1.

How to fix this

Upgrade the nodemailer library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform