node-nodemailer — security advisory
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.
- Products
- node-nodemailer
- Affected versions
- 10.0.0+~8.0.1-1, 10.0.10+~8.0.1-1, 10.0.10+~8.0.2-1, 10.0.13+~8.0.2-1, 10.0.14+~8.0.2-1, 6.10.0+~6.4.17-1, 6.10.0+~6.4.17-1+deb13u1, 6.8.0+~6.4.6-1, 6.9.13+~6.4.14-1, 6.9.15+~6.4.16-1, 6.9.16+~6.4.16-1, 6.9.4+~6.4.9-1, 6.9.4+~6.4.9-2, 6.9.4+~6.4.9-3, 6.9.4+~6.4.9-4, 7.0.10+~7.0.2-1, 7.0.12+~7.0.5-1, 7.0.5+~7.0.1-1, 7.0.6+~7.0.1-1, 7.0.9+~7.0.2-1, 7.0.9+~7.0.2-2, 8.0.11+~8.0.1-1, 8.0.2+~7.0.11-1, 8.0.3+~7.0.11-1, 8.0.4+~7.0.11-1, 8.0.4+~7.0.11-2, 9.0.0+~8.0.1-1, 9.0.3+~8.0.1-1, 9.0.5+~8.0.1-1, 9.0.6+~8.0.1-1
- Fixed versions
- 8.0.4+~7.0.11-1
- CVEs
- CVE-2026-82854
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 11:09 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-82854
node-nodemailer
Fixed versions: Not specified
node-nodemailer
Fixed versions: Not specified
node-nodemailer
Fixed versions: 8.0.4+~7.0.11-1
Complete source record
{
"id": "a789b053a7e1ac419a05e5ad94a0f591f4eb9e6542e39862bd3826e433a36ec4",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-82854",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-82854",
"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 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.",
"evidence": "osv:DEBIAN-CVE-2026-82854",
"products": [
{
"name": {
"value": "node-nodemailer",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.0.0+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.10+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.10+~8.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.13+~8.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.14+~8.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.10.0+~6.4.17-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.8.0+~6.4.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.13+~6.4.14-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.15+~6.4.16-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.16+~6.4.16-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.4+~6.4.9-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.4+~6.4.9-2",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.4+~6.4.9-3",
"evidence": "/affected/0/versions"
},
{
"value": "6.9.4+~6.4.9-4",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.10+~7.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.12+~7.0.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.5+~7.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.6+~7.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.9+~7.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.0.9+~7.0.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "8.0.11+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "8.0.2+~7.0.11-1",
"evidence": "/affected/0/versions"
},
{
"value": "8.0.3+~7.0.11-1",
"evidence": "/affected/0/versions"
},
{
"value": "8.0.4+~7.0.11-1",
"evidence": "/affected/0/versions"
},
{
"value": "8.0.4+~7.0.11-2",
"evidence": "/affected/0/versions"
},
{
"value": "9.0.0+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "9.0.3+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "9.0.5+~8.0.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "9.0.6+~8.0.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-nodemailer",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.0.0+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "10.0.10+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "10.0.10+~8.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "10.0.13+~8.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "10.0.14+~8.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "6.10.0+~6.4.17-1",
"evidence": "/affected/1/versions"
},
{
"value": "6.10.0+~6.4.17-1+deb13u1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.10+~7.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.12+~7.0.5-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.5+~7.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.6+~7.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.9+~7.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.0.9+~7.0.2-2",
"evidence": "/affected/1/versions"
},
{
"value": "8.0.11+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "8.0.2+~7.0.11-1",
"evidence": "/affected/1/versions"
},
{
"value": "8.0.3+~7.0.11-1",
"evidence": "/affected/1/versions"
},
{
"value": "8.0.4+~7.0.11-1",
"evidence": "/affected/1/versions"
},
{
"value": "8.0.4+~7.0.11-2",
"evidence": "/affected/1/versions"
},
{
"value": "9.0.0+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "9.0.3+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "9.0.5+~8.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "9.0.6+~8.0.1-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-nodemailer",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "8.0.4+~7.0.11-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "6.10.0+~6.4.17-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.10+~7.0.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.12+~7.0.5-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.5+~7.0.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.6+~7.0.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.9+~7.0.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.0.9+~7.0.2-2",
"evidence": "/affected/2/versions"
},
{
"value": "8.0.2+~7.0.11-1",
"evidence": "/affected/2/versions"
},
{
"value": "8.0.3+~7.0.11-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2026-82854",
"aliases": [
"DEBIAN-CVE-2026-82854"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-nodemailer",
"purl": "pkg:deb/debian/node-nodemailer?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"10.0.0+~8.0.1-1",
"10.0.10+~8.0.1-1",
"10.0.10+~8.0.2-1",
"10.0.13+~8.0.2-1",
"10.0.14+~8.0.2-1",
"6.10.0+~6.4.17-1",
"6.8.0+~6.4.6-1",
"6.9.13+~6.4.14-1",
"6.9.15+~6.4.16-1",
"6.9.16+~6.4.16-1",
"6.9.4+~6.4.9-1",
"6.9.4+~6.4.9-2",
"6.9.4+~6.4.9-3",
"6.9.4+~6.4.9-4",
"7.0.10+~7.0.2-1",
"7.0.12+~7.0.5-1",
"7.0.5+~7.0.1-1",
"7.0.6+~7.0.1-1",
"7.0.9+~7.0.2-1",
"7.0.9+~7.0.2-2",
"8.0.11+~8.0.1-1",
"8.0.2+~7.0.11-1",
"8.0.3+~7.0.11-1",
"8.0.4+~7.0.11-1",
"8.0.4+~7.0.11-2",
"9.0.0+~8.0.1-1",
"9.0.3+~8.0.1-1",
"9.0.5+~8.0.1-1",
"9.0.6+~8.0.1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82854.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-nodemailer",
"purl": "pkg:deb/debian/node-nodemailer?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"10.0.0+~8.0.1-1",
"10.0.10+~8.0.1-1",
"10.0.10+~8.0.2-1",
"10.0.13+~8.0.2-1",
"10.0.14+~8.0.2-1",
"6.10.0+~6.4.17-1",
"6.10.0+~6.4.17-1+deb13u1",
"7.0.10+~7.0.2-1",
"7.0.12+~7.0.5-1",
"7.0.5+~7.0.1-1",
"7.0.6+~7.0.1-1",
"7.0.9+~7.0.2-1",
"7.0.9+~7.0.2-2",
"8.0.11+~8.0.1-1",
"8.0.2+~7.0.11-1",
"8.0.3+~7.0.11-1",
"8.0.4+~7.0.11-1",
"8.0.4+~7.0.11-2",
"9.0.0+~8.0.1-1",
"9.0.3+~8.0.1-1",
"9.0.5+~8.0.1-1",
"9.0.6+~8.0.1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82854.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.0.4+~7.0.11-1"
}
]
}
],
"package": {
"name": "node-nodemailer",
"purl": "pkg:deb/debian/node-nodemailer?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"6.10.0+~6.4.17-1",
"7.0.10+~7.0.2-1",
"7.0.12+~7.0.5-1",
"7.0.5+~7.0.1-1",
"7.0.6+~7.0.1-1",
"7.0.9+~7.0.2-1",
"7.0.9+~7.0.2-2",
"8.0.2+~7.0.11-1",
"8.0.3+~7.0.11-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-82854.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-09T10:00:14.361727318Z",
"provider": "osv",
"upstream": [
"CVE-2026-82854"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-82854"
]
},
"related_cves": [
{
"value": "CVE-2026-82854",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 111726,
"published_at": "2026-08-31T09:17:05.463+00:00"
}