CVE-2026-82854Nodemailer before 8.0.4 SMTP Command Injection via envelope.size
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-nodemailer | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | node-nodemailer | Under investigation | UBUNTU-CVE-2026-82854 | |
| Ubuntu 22.04 | node-nodemailer | Under investigation | UBUNTU-CVE-2026-82854 | |
| Ubuntu 20.04 | node-nodemailer | Fix pending | UBUNTU-CVE-2026-82854 | |
| Debian 14 | node-nodemailer | Fixed | 8.0.4+~7.0.11-1 | DEBIAN-CVE-2026-82854 |
| Debian 13 | node-nodemailer | Fix pending | DEBIAN-CVE-2026-82854 | |
| Debian 12 | node-nodemailer | Fix pending | DEBIAN-CVE-2026-82854 | |
| Red Hat Enterprise Linux 10 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Fix pending Fix deferred | ||
| npm library | nodemailer | Fixed | 8.0.4 | GHSA-c7w3-x93f-qmm8 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nodemailer: affected: before 8.0.4, 8.0.4 not affected; fixed in
8.0.4
Vendor advisories:
References
- https://github.com/nodemailer/nodemailer/security/advisories/GHSA-c7w3-x93f-qmm8
- https://www.vulncheck.com/advisories/nodemailer-before-8.0.3-smtp-command-injection-via-envelope-size
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.