Skip to content
Heist/ feed
Critical

Nodemailer before 8.0.3 SMTP Command Injection via envelope.size

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-82854

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-82854

nodemailer

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "nodemailer",
    "product": "nodemailer",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "8.0.3",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "8.0.3",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/nodemailer",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-82854

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#12920 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement