Nodemailer before 8.0.4 SMTP Command Injection via envelope.size
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nodemailer | nodemailer | before 8.0.4 | 8.0.4 | Patch available | CNA |
- nodemailer Vendornodemailer Affected before 8.0.4 Fixed in 8.0.4 Patch available CNA
Remediation
- Fix · CNA nodemailer (nodemailer) Fixed in 8.0.4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-82854
- 2026-10-03 Alias added: GHSA-2x76-7hhq-pgvw
- 2026-10-13 Affected versions changed · Red Hat
- 2026-10-20 Affected versions changed · Red Hat
- 2026-10-27 Affected versions changed · Red Hat
- 2026-10-29 Title updated · CNA
- 2026-10-29 Fix available: nodemailer/[email protected] · CNA
References
More nodemailer vulnerabilities
- TI-2026-74559 ReDoS in Nodemailer SMTP AUTH mechanism detection regexes CVSS 4.0HIGH 8.7
- TI-2026-64856 nodemailer before 10.0.6 Denial of Service via addressparser CVSS 4.0HIGH 8.7
- TI-2026-62452 Nodemailer before 9.1.0 Denial of Service via addressparser CVSS 4.0HIGH 8.7
- TI-2026-61683 Nodemailer 9.1.0 through 10.0.4 Denial of Service via Quadratic Address Parsing CVSS 4.0HIGH 8.7
- TI-2025-13566 Nodemailer: nodemailer: denial of service via crafted email address header CVSS 3.1HIGH 7.5
- TI-2026-74560 Nodemailer address parser passes illegal characters to SMTP envelope CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-82854 · CVE Program
- CVE-2026-82854 · NVD
- FIRST EPSS
- GHSA-2x76-7hhq-pgvw · GitHub Advisory Database · CC BY 4.0
- CVE-2026-82854 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences