CVE-2026-82854
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.
Weakness
- CWE-93: Improper Neutralization of CRLF Sequences
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2026-08-31 |
Timeline
- 2026-03-26GitHub advisory published (GHSA-c7w3-x93f-qmm8)158 days before publication
- 2026-08-31Published by the CNA08:46 UTC
- 2026-08-31CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-c7w3-x93f-qmm8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm nodemailer | before 8.0.4 | 8.0.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nodemailer nodemailer | from 0 before 8.0.4fixed in 8.0.4before 8.0.4fixed in 8.0.4 | 8.0.48.0.4 |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-82854'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-82854'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-82854'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-82854'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).