CVE-2026-82854

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductNodemailer
PublishedAug 31, 2026
First seenAug 31, 2026
Weakness typeCWE-93CWE-93

How to fix

Affected products

ProductAffected versionsFixed in
nodemailernpmv < 8.0.48.0.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.