Description
Nodemailer versions before 8.0.5 contain an SMTP command injection vulnerability in the transport name option used in EHLO/HELO commands. The name parameter is concatenated directly into SMTP commands without sanitizing carriage return and line feed characters, allowing attackers to inject arbitrary SMTP commands for email spoofing and phishing attacks.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodemailer | nodemailer | < 8.0.5 | 8.0.5 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-nodemailer | 8.0.11+~8.0.1-1 | — |
| Debian 13 | node-nodemailer | No fix yet | — |
| Debian 12 | node-nodemailer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 24.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 22.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 20.04 LTS | node-nodemailer | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nodemailer | < 8.0.5 | 8.0.5 | GHSA-vvjj-xcjg-gr5g |
References
- GitHub Security Advisory (GHSA-vvjj-xcjg-gr5g) vendor-advisory
- VulnCheck Advisory: Nodemailer before 8.0.5 SMTP Command Injection via CRLF third-party-advisory