CVEfocus › CVE database › CVE-2026-82854

CVE-2026-82854Nodemailer before 8.0.4 SMTP Command Injection via envelope.size

CVSS 9.8 CriticalEPSS 2.0% (higher than 81% of CVEs)Published 2026-08-31Updated 2026-10-29Assigner: VulnCheck

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.

CWE-93

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

2Fixed
5Fix pending
2Under investigation
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-nodemailerNot affected
vulnerable_code_not_present
Ubuntu 24.04node-nodemailerUnder investigationUBUNTU-CVE-2026-82854
Ubuntu 22.04node-nodemailerUnder investigationUBUNTU-CVE-2026-82854
Ubuntu 20.04node-nodemailerFix pendingUBUNTU-CVE-2026-82854
Debian 14node-nodemailerFixed8.0.4+~7.0.11-1DEBIAN-CVE-2026-82854
Debian 13node-nodemailerFix pendingDEBIAN-CVE-2026-82854
Debian 12node-nodemailerFix pendingDEBIAN-CVE-2026-82854
Red Hat Enterprise Linux 10grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 10grafana-selinuxFix pending
Fix deferred
npm librarynodemailerFixed8.0.4GHSA-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.

Vendor advisories:

References

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.