CVE-2026-82854nodemailer
SMTP Command Injection in Nodemailer via envelope.size Parameter
Critical 9.3 No auth needed
Follow: this CVE · nodemailer · nodemailer We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Aug 31, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-93
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/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
What happens
Nodemailer before 8.0.4 is vulnerable to SMTP command injection when an application passes a custom envelope object with an unsanitized size property. An attacker can inject arbitrary SMTP commands such as RCPT TO to add attacker-controlled recipients, provided the application exposes the envelope size to attacker-controlled input.
Show the original NVD text
Nodemailer before 8.0.4 is vulnerable to SMTP command injection through the unsanitized envelope.size parameter. When an application passes a custom envelope object with a size property containing CRLF characters to sendMail(), the value is concatenated into the SMTP MAIL FROM command (as SIZE=...) without sanitization, allowing injection of arbitrary SMTP commands such as RCPT TO to silently add attacker-controlled recipients. Exploitation requires the application to expose the envelope size to attacker-controlled input, as Nodemailer does not include size in the default auto-constructed envelope.
What to do
Patch available · fixed versions: 8.0.4
Update Nodemailer to version 8.0.4 or later to sanitize the envelope.size parameter and prevent SMTP command injection.
- Apply the vendor's security update for nodemailer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | nodemailer |
< 8.0.4 |
8.0.4 |
npm install nodemailer@8.0.4 |
Per OSV / GitHub Advisories (GHSA-c7w3-x93f-qmm8). Check the version in your lockfile before upgrading.
Affected products
- nodemailer · nodemailer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.