npm
CVE-2026-110869
Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection regexes allows 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.13
- Exploit chance
- 0.4% in the next 30 daysHigher than 30% 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-4ffr-jq9g-5ffx
- Sources
- OSV.dev and GitHub
Description
Nodemailer's SMTP client applies four regular expressions to a peer's EHLO response to detect the supported SASL mechanisms. Each pattern uses an alternation with two overlapping whitespace-matching sub-patterns, which produces quadratic (O(n^2)) backtracking whenever the mechanism name is absent from the line. A malicious or MITM SMTP server that answers EHLO with 250-AUTH followed by a long whitespace-only run and a non-matching token blocks the Node.js event loop for tens of seconds to hours during a pre-authentication handshake. No authentication to the target SMTP server is required, and any application that connects to an attacker-influenced host is affected.
Each of the four AUTH mechanism regexes in SMTPConnection._actionEHLO contains the sub-pattern (?:(\s+|=)[^\n]\s+|\s+|=) before the mechanism literal. [^\n] and the trailing \s+ both match whitespace and can consume the same characters, so when the mechanism literal is absent, the regex engine must try every partition of…
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-110870Nodemailer: RFC 5322 comment inside an angle-bracket address is never strippedMedium 5.3 27 Oct 2026
- CVE-2026-110872Nodemailer: Quadratic (O(n^2)) SMTP client reply parsing lets a malicious server or MITM cause a pre-auth remote denial of serviceMedium 5.9 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110869
- GitHub Advisory Database https://github.com/advisories/GHSA-4ffr-jq9g-5ffx