Inefficient Algorithmic Complexity Affecting nodemailer package, versions >=9.1.0 <10.0.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.48% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NODEMAILER-19784395
  • published14 Sept 2026
  • disclosed13 Sept 2026
  • creditMario Madersbacher

Introduced: 13 Sep 2026

NewCVE-2026-90776  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade nodemailer to version 10.0.5 or higher.

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in its address parser (src/addressparser/index.ts), whose join condition evaluates parts[parts.length - 1].slice(-1) before the cheaper token.value.charAt(0) check, flattening the accumulator on every token and making the parse quadratic in the length of the address value. An attacker can block the Node.js event loop for roughly 7 seconds per message, stalling all other work on it, by supplying an address value of about 640 KB whose atoms are separated by RFC 5322 comments, such as a@b(c)@b(c)@b(c).... This requires the application to parse untrusted addresses, which is reachable through mailparser wherever inbound email headers are processed.

CVSS Base Scores

version 4.0
version 3.1