Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-82854 EUVD-2026-68442GHSA-2x76-7hhq-pgvwGHSA-c7w3-x93f-qmm8

Nodemailer before 8.0.4 SMTP Command Injection via envelope.size

Published Aug 31, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
nodemailer nodemailer < 8.0.4 8.0.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-nodemailer 8.0.4+~7.0.11-1 —
Debian 13 node-nodemailer No fix yet —
Debian 12 node-nodemailer No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS node-nodemailer No fix yet —
Ubuntu 22.04 LTS node-nodemailer No fix yet —
Ubuntu 20.04 LTS node-nodemailer No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nodemailer < 8.0.4 8.0.4 GHSA-c7w3-x93f-qmm8

References