Skip to main content
VulnerabilityPublished

CVE-2026-82854: Nodemailer before 8.0.4 is vulnerable to SMTP command injection through the unsanitized envelope.size parameter

Affects nodemailerSource GCVE Database

0
Compare
Authoritative record:CVE-2026-82854· Critical 9.3

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

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.09.3
CNA (VulnCheck)CVSS 3.19.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 31 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmnodemailerpkg:npm/nodemailerOther threatsAffected
  • <8.0.4
Fixed in
  • 8.0.4

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.

References

Community reviews

Loading reviews…