ZeroHour

CVE-2026-90776

mass

Quadratic-complexity DoS in Nodemailer addressparser via RFC 5322 comments

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

Nodemailer 9.1.0 through 10.0.4 contains a CWE-407 inefficient algorithmic complexity flaw in the addressparser component used to parse email addresses. An attacker triggers it by sending messages whose address headers contain crafted RFC 5322 comment-separated atoms, causing parsing time to grow quadratically with input size and pinning the CPU. Because Node.js is single-threaded, this blocks the event loop for several seconds per malicious header, degrading or exhausting availability of the affected service (CVSS 4.0: 8.7, availability-only impact, no privileges or user interaction required). Any Node.js application that uses an affected Nodemailer version to process attacker-controlled addresses or headers — such as inbound mail handling or address validation — is at risk. No public PoC exists, the flaw is not in CISA's KEV, and no exploitation in the wild is known.

What to do: Upgrade Nodemailer to a release newer than 10.0.4 as soon as a fixed version is published. Until then, cap the length of inbound address headers, strip or reject RFC 5322 comments before parsing, and rate-limit unauthenticated submission endpoints that feed addresses into Nodemailer. Consider moving address parsing into a worker thread or separate process so a malicious header cannot block the main event loop, and alert on CPU spikes or event-loop lag during mail processing.

Affected
Nodemailer (nodemailer) nodemailer (Node.js npm package)9.1.0 through 10.0.4
Estimated exposure
mass≈ millions of Node.js deployments potentially exposed (nodemailer draws on the order of millions of npm downloads per week) — Nodemailer is one of the most-downloaded npm packages (millions of weekly downloads), and the affected range covers the most recent major versions that active installs commonly pin to; actual exposure depends on how many deployments pass…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Nodemailer versions 9.1.0 through 10.0.4 contain a quadratic time complexity vulnerability in the addressparser component when parsing email addresses with RFC 5322 comments. Attackers can craft malicious email headers with comment-separated atoms to consume excessive CPU and block the Node.js event loop for several seconds, causing denial of service.

Weakness
CWE-407
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.