npm
CVE-2026-110872
Nodemailer: Quadratic (O(n^2)) SMTP client reply parsing lets a malicious server or MITM cause a pre-auth remote denial of service
- Severity
- Medium 5.9
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 10.0.10
- Exploit chance
- 0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-4g23-2xm8-66gc
- Sources
- OSV.dev and GitHub
Description
The SMTP client response parser reassembles multiline server replies by appending each continuation line onto a single response-queue entry and re-testing whether that entry is still a partial (continuation) reply on every line. The partial-response test runs str.slice(str.lastIndexOf('\n') + 1) on the growing entry, which forces a full flatten of the entire accumulated string on each line. A malicious or compromised SMTP server (or an on-path attacker on a plaintext or pre-STARTTLS hop) that streams continuation lines and never sends a completion line drives O(n^2) CPU on the single-threaded Node.js event loop before any authentication, freezing the whole process for an attacker-controlled duration.
The invariant that a server cannot cause superlinear client-side work while a reply is being reassembled is violated. In src/smtp-connection/index.ts, _onData splits inbound bytes into lines and, while the last queued entry is a continuation reply, concatenates each new line onto that…
Affected software
| Software | Affected versions |
|---|---|
nodemailernpm · osv:npm:nodemailer |
|
About nodemailer
- Weekly downloads (npm)
- 40,472,572npm, 23 Nov 2026
Vulnerabilities in nodemailer
- In our list
- 7
- Published in the last 12 months
- 7
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-125755Nodemailer 3.0.0 before 10.4.1 Recipient Allow-List Bypass via addressparserHigh 8.3 10 Nov 2026
- CVE-2026-121426Nodemailer 3.0.0 before 10.1.4 Recipient Domain Confusion via addressparserHigh 8.3 3 Nov 2026
- CVE-2026-121425Nodemailer 3.0.0 before 10.1.4 Recipient Injection via addressparser Group ParsingHigh 8.3 3 Nov 2026
- CVE-2026-121424Nodemailer 3.0.0 before 10.1.4 Address Parsing Bypass via Nested CommentsHigh 8.3 3 Nov 2026
- CVE-2026-110869Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection regexes allows pre-auth remote denial of serviceMedium 5.9 27 Oct 2026
- CVE-2026-110870Nodemailer: RFC 5322 comment inside an angle-bracket address is never strippedMedium 5.3 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110872
- GitHub Advisory Database https://github.com/advisories/GHSA-4g23-2xm8-66gc