Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-82854— Nodemailer before 8.0.3 SMTP Command Injection via envelope.size

Quick assessment

Affected
nodemailer nodemailer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Nodemailer 在 8.0.4 之前的版本存在 SMTP 命令注入漏洞,原因是信封(envelope)中的 参数未经过清洗(sanitization)。当应用程序向 传递一个自定义的信封对象,且其 属性包含 CRLF(回车换行)字符时,该值会被直接拼接到 SMTP 的 命令中(以 形式),且未进行任何过滤,从而允许攻击者注入任意 SMTP 命令(例如 ),从而在不被察觉的情况下添加由攻击者控制的收件人。利用此漏洞的前提是应用程序需将信封的 字段暴露给攻击者可控的输入;因为 Nodemailer 在默认自动构建

CVSS 9.8 · Critical
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-82854

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Nodemailer before 8.0.3 SMTP Command Injection via envelope.size
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对CRLF序列的转义处理不恰当(CRLF注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
nodemailer nodemailer 0 ~ 8.0.3 -

II. Public POCs for CVE-2026-82854

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-82854

登录查看更多情报信息。

Other References for CVE-2026-82854 (2)

Same Patch Batch · nodemailer · 2026-08-31 · 7 CVEs total

CVE-2026-82659 7.1 HIGH nodemailer before 9.0.1 File Read and SSRF via raw option
CVE-2026-82662 6.5 MEDIUM Nodemailer before 8.0.8 TLS Certificate Validation Bypass
CVE-2026-82660 5.4 MEDIUM Nodemailer jsonTransport bypasses disableFileAccess and disableUrlAccess
CVE-2026-82661 5.4 MEDIUM Nodemailer CRLF Injection via List-* Header Comments
CVE-2024-58379 5.3 MEDIUM nodemailer before 6.9.9 ReDoS via attachDataUrls parameter
CVE-2026-82853 4.9 MEDIUM Nodemailer before 8.0.5 SMTP Command Injection via CRLF

IV. Related Vulnerabilities

V. Comments for CVE-2026-82854

No comments yet


Leave a comment