CVE-2026-82854

NameCVE-2026-82854
DescriptionNodemailer 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-nodemailer (PTS)bookworm6.8.0+~6.4.6-1vulnerable
trixie6.10.0+~6.4.17-1+deb13u1vulnerable
forky, sid10.0.10+~8.0.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-nodemailersource(unstable)8.0.4+~7.0.11-1

Notes

[trixie] - node-nodemailer <no-dsa> (Minor issue)
[bookworm] - node-nodemailer <postponed> (Minor issue)
https://github.com/nodemailer/nodemailer/security/advisories/GHSA-c7w3-x93f-qmm8

Search for package or bug name: Reporting problems