CVE-2026-92597
CVE-2026-92597 · Nodemailer before 9.1.0 Email Domain Validation Bypass via RFC 5322 Comment
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Nodemailer versions >= 6.9.16 and < 9.1.0 mis-parse RFC 5322 comments in email addresses: in lib/addressparser, a comment closed immediately before a non-break character causes the tokenizer to concatenate the atoms surrounding the comment instead of treating the comment as folding whitespace that terminates the domain. A recipient address such as [email protected](x)evil.com is therefore read by Nodemailer as the single domain good-corp.comevil.com (registrable domain comevil.com, which an attacker can register) and used for both the SMTP envelope (RCPT TO) and the emitted To:/From: headers, while a conformant RFC 5322 parser terminates the domain at the comment and reads good-corp.com. An application that validates the recipient domain with a strict RFC 5322 parser (without inspecting parse defects) or a naive prefix/substring allow-list and then hands the raw address to Nodemailer can be induced to deliver mail to a domain the attacker controls. Fixed in 9.1.0.
CVSS 8.3 · High · EPSS 0.4% · Fix available
- Published
- Updated
Affected products and versions
nodemailer
- Versions
- ≥ 6.9.16, < 9.1.0: Affected (semver)
- 9.1.0: Not affected (semver)
Update to 9.1.0
node-nodemailer Debian:13
- Versions
- 10.0.0+~8.0.1-1
- 10.0.10+~8.0.1-1
- 10.0.10+~8.0.2-1
- 10.0.13+~8.0.2-1
- 6.10.0+~6.4.17-1
- 6.10.0+~6.4.17-1+deb13u1
- 7.0.10+~7.0.2-1
- 7.0.12+~7.0.5-1
- 7.0.5+~7.0.1-1
- 7.0.6+~7.0.1-1
- 7.0.9+~7.0.2-1
- 7.0.9+~7.0.2-2
- 8.0.11+~8.0.1-1
- 8.0.2+~7.0.11-1
- 8.0.3+~7.0.11-1
- 8.0.4+~7.0.11-1
- 8.0.4+~7.0.11-2
- 9.0.0+~8.0.1-1
- 9.0.3+~8.0.1-1
- 9.0.5+~8.0.1-1
- 9.0.6+~8.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-nodemailer Debian:14
- Versions
- 6.10.0+~6.4.17-1
- 7.0.10+~7.0.2-1
- 7.0.12+~7.0.5-1
- 7.0.5+~7.0.1-1
- 7.0.6+~7.0.1-1
- 7.0.9+~7.0.2-1
- 7.0.9+~7.0.2-2
- 8.0.11+~8.0.1-1
- 8.0.2+~7.0.11-1
- 8.0.3+~7.0.11-1
- 8.0.4+~7.0.11-1
- 8.0.4+~7.0.11-2
- 9.0.0+~8.0.1-1
- 9.0.3+~8.0.1-1
- 9.0.5+~8.0.1-1
- 9.0.6+~8.0.1-1
- Affected ranges
- ECOSYSTEM: < 10.0.0+~8.0.1-1
Update to 10.0.0+~8.0.1-1
nodemailer npm
- Affected ranges
- SEMVER: ≥ 6.9.16, < 9.1.0
Update to 9.1.0
node-nodemailer Ubuntu:20.04:LTS
- Versions
- 6.3.0-2
- 6.3.1-1
- 6.4.0-1
- 6.4.1-1
- 6.4.2-1
- 6.4.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-nodemailer Ubuntu:22.04:LTS
- Versions
- 6.4.17-3
- 6.7.0-1
- 6.7.0-2
- 6.7.1+~6.4.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-nodemailer Ubuntu:24.04:LTS
- Versions
- 6.9.4+~6.4.9-2
- 6.9.4+~6.4.9-3ubuntu1
- 6.9.4+~6.4.9-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-nodemailer Ubuntu:26.10
- Versions
- 8.0.4+~7.0.11-1
- 8.0.4+~7.0.11-2
- 9.0.0+~8.0.1-1
- 9.0.3+~8.0.1-1
- 9.0.5+~8.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-nodemailer Ubuntu:26.04:LTS
- Versions
- 7.0.5+~7.0.1-1
- 7.0.9+~7.0.2-2
- 7.0.10+~7.0.2-1
- 7.0.12+~7.0.5-1
- 8.0.4+~7.0.11-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published