Intel

AIKIDO-2026-810392

nodemailer is vulnerable to Denial of Service (DoS)

GHSA-4g23-2xm8-66gcPublished Oct 5, 2026
October 5, 2026

59

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Nodemailer's SMTP client builds a multiline server reply by appending each continuation line to a single queued string and rescanning that whole string with lastIndexOf and slice on every new line. The string grows with each line, so the rescan cost grows with the accumulated reply and CPU time becomes quadratic. A malicious or on path SMTP server that streams continuation lines without ever completing the reply blocks the Node.js event loop before the client authenticates. The fix tracks partial reply state separately so each line is checked once and caps the buffered reply size.

How do I fix this?

Upgrade the nodemailer library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you connect to an SMTP server that is untrusted or reachable by an on path network party.

Package

Versions

3.0.0 - 10.0.9

Fixed in 10.0.10

Background info

nodemailer is vulnerable to Denial of Service (DoS) in versions 3.0.0 - 10.0.9.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea