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

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.37%, higher than 72% of CVEs (2026-12-01)
- Published: 2026-03-26T22:26:46.000Z
- Modified: 2026-10-29T21:17:33.500Z
- Also known as: GHSA-c7w3-x93f-qmm8
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- nodemailer nodemailer: before 8.0.4 (not affected: 8.0.4)
- nodemailer (npm): before 8.0.4

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/nodemailer/nodemailer/security/advisories/GHSA-c7w3-x93f-qmm8> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nodemailer-before-8.0.3-smtp-command-injection-via-envelope-size> (third-party-advisory)
- <https://github.com/nodemailer/nodemailer/commit/2d7b9710e63555a1eb13d721296c51186d4b5651> (web)
- <https://github.com/nodemailer/nodemailer> (package)

## Sources

- CVE List: [CVE-2026-82854](https://www.cve.org/CVERecord?id=CVE-2026-82854), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-c7w3-x93f-qmm8](https://github.com/advisories/GHSA-c7w3-x93f-qmm8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-82854](https://nvd.nist.gov/vuln/detail/CVE-2026-82854), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-82854 · Whole record: https://cve.day/CVE-2026-82854.json · Rebuilt by cve.day 2026-11-25T22:59:35.809Z
