{"id":"CVE-2026-82854","title":"Nodemailer before 8.0.4 is vulnerable to SMTP command injection through the unsanitized envelope.size parameter","summary":"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…","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-93"],"vendor":"nodemailer","product":"nodemailer","affected":["nodemailer < 8.0.3"],"published":"2026-08-31","updated":"2026-10-08","sourceUpdated":"2026-10-08T16:17:51.040","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-82854","references":[{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-c7w3-x93f-qmm8","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/nodemailer-before-8.0.3-smtp-command-injection-via-envelope-size","label":"disclosure@vulncheck.com"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82854.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-82854"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2526189"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-82854"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82854"}],"tags":["nvd","cve.org","csaf","vex","red-hat","score-dispute"],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-31T16:46:43.285974Z"},"epss":0.01975,"epssPercentile":0.80381,"scores":{"nvd":9.8,"vendor":4.8},"ingestedAt":"2026-09-10T15:53:17.039Z","slug":"CVE-2026-82854","body":"## Overview\n\nNodemailer 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · affected: Red Hat Developer Hub, Self-service automation portal 2 · no fix planned: Red Hat Developer Hub, Self-service automation portal 2 · updated 2026-09-28 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82854.json)","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.4,"exploitation":0,"ransomware":0},"changes":[]}