CVE-2026-82854: Nodemailer before 8.0.4 is vulnerable to SMTP command injection through the unsanitized envelope.size parameter
Affects nodemailerSource GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 8.0.4 as a priority.
Data as of 29 Nov 2026, 18:37 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 9.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 9.8 |
- EPSS
- 1.9% chance of exploitation in 30 days – higher than 81% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.0.4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 31 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.
What to do
Upgrade nodemailer to 8.0.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmnodemailerpkg:npm/nodemailerOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Nodemailer version 8.0.4 and later. Users should upgrade to version 8.0.4 or newer to remediate this vulnerability. Until upgraded, ensure that applications do not pass attacker-controlled input to the envelope.size parameter or sanitize this input to prevent injection of CRLF characters.
Description
Nodemailer versions before 8.0.4 contain a critical vulnerability allowing SMTP command injection via the unsanitized envelope.size parameter. This occurs when an application passes a custom envelope object with a size property containing CRLF characters to the sendMail() function, enabling injection of arbitrary SMTP commands such as RCPT TO. Exploitation requires attacker control over the envelope size input, which is not included by default in Nodemailer's auto-constructed envelope.