Skip to main content

Nodemailer CVE-2026-82853

| EUVDEUVD-2026-68441 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-08-31 VulnCheck GHSA-q8rv-95x3-46j5
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app that passes user input to Nodemailer name option
  2. Delivery
    Craft name value containing CRLF sequences
  3. Exploit
    Submit payload to application
  4. Execution
    Nodemailer issues EHLO with injected commands to SMTP relay
  5. Persist
    SMTP relay executes injected MAIL FROM/RCPT TO/DATA commands
  6. Impact
    Unauthorized or spoofed email delivered

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

The attacker must be able to supply or influence the name option in the Nodemailer transport configuration - the string used to identify the local host in EHLO/HELO commands. This occurs when application code accepts external input (user-submitted hostname, tenant name, environment variable, or similar) and passes it to the Nodemailer transport constructor's name field without stripping \r or \n characters. The CVSS PR:H metric reflects that this configuration value is ordinarily a developer- or operator-controlled parameter, not directly reachable by unauthenticated end-users in a standard deployment. Exploitation is further limited to Node.js applications specifically using Nodemailer for outbound SMTP. Applications that hard-code a static hostname string in the transport name option are not exploitable regardless of patch status. No special network position, non-default feature flags, or specific SMTP server implementations are required beyond basic SMTP relay connectivity.

Impact

The CVSS 4.0 base score of 6.9 with PR:H accurately reflects the principal limiting factor: exploitation requires that an attacker control the transport name configuration option, which is an operator- or developer-level parameter not typically exposed to unauthenticated end-users. This substantially narrows the real-world attack surface compared to a PR:N flaw. That said, applications that accept user-supplied hostnames, tenant identifiers, or other strings and pass them into Nodemailer transport options without sanitization are directly exposed. A proof-of-concept is embedded in the GHSA advisory, lowering the skill bar for exploitation in such scenarios. No CISA KEV listing exists, and EPSS data was not provided in the input - exploitation appears opportunistic rather than widespread at time of analysis. The integrity-only impact (VI:H, VC:N, VA:N) reflects that a successful attack enables email spoofing and phishing via the relay rather than host compromise. Overall: moderate priority for applications where user-controlled data flows into Nodemailer transport configuration; low priority elsewhere.

Exploit ScenarioDerived

An application accepts a user-supplied hostname or tenant label and passes it unsanitized to the Nodemailer transport name option. An attacker submits a value containing embedded CRLF sequences such as attacker.example\r\nMAIL FROM:<spoof@victim.com>\r\nRCPT TO:<target@example.com>\r\nDATA\r\n. When Nodemailer connects and issues EHLO, the SMTP relay processes each injected line as a discrete command, sending an unauthorized email on behalf of the spoofed sender. A working proof-of-concept demonstrating this command injection, including a minimal local SMTP observer, is included in GHSA-vvjj-xcjg-gr5g.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

SMTP command injection in Nodemailer (npm) versions up to and including 8.0.4 allows an attacker who can influence the transport name configuration option to inject arbitrary SMTP commands by embedding CRLF sequences in the value. The EHLO, HELO, and LHLO commands are constructed via direct string concatenation in lib/smtp-connection/index.js without sanitization, enabling unauthorized email sending, spoofing, and phishing through the configured SMTP relay. A proof-of-concept is publicly available in the GHSA advisory; no KEV listing is present, indicating exploitation has not been confirmed at mass scale at time of analysis.

RemediationAI

Upgrade Nodemailer to version 8.0.5 or later, which sanitizes the name transport option against CRLF sequences. The upstream fix is available at commit 0a43876801a420ca528f492eaa01bfc421cc306e (https://github.com/nodemailer/nodemailer/commit/0a43876801a420ca528f492eaa01bfc421cc306e). Full vendor advisory is at https://github.com/nodemailer/nodemailer/security/advisories/GHSA-vvjj-xcjg-gr5g. If an immediate upgrade is not feasible, validate and strip carriage return and line feed characters (\r and \n) from any externally derived value before passing it to the Nodemailer transport name option - for example, name.replace(/[ ]/g, ''). This compensating control eliminates the injection surface but relies on application-layer validation that could be missed in other call sites; upgrading the package is the authoritative fix.

Affected VersionsENISA

nodemailer 0 <8.0.5

Affected Packages

npm nodemailer fix: 8.0.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nodemailer (CPE: cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*) is a popular Node.js npm package for sending email via SMTP. The vulnerability is rooted in CWE-93 (Improper Neutralization of CRLF Sequences), a class of injection flaw where unsanitized newline characters allow an attacker to terminate one protocol line and begin another. In lib/smtp-connection/index.js, the name configuration value is assigned directly at line 71 and concatenated into EHLO/HELO/LHLO commands at lines 1333-1384. The _sendCommand method appends a literal \r\n to the result and writes it to the TCP socket; if the name itself already contains \r\n, the SMTP server interprets each embedded line as a discrete command. The envelope.from and envelope.to fields do have CRLF guards (lines 1107-1119), and a prior issue (GHSA-c7w3-x93f-qmm8) fixed the envelope.size parameter - the name option was the sole remaining unvalidated injection point. The fix was applied in commit 0a43876.

Know when Nodemailer gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.9 MEDIUM

PR:H because exploitation requires operator-level control of the transport name option; integrity-only impact via arbitrary SMTP command injection with no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Red Hat 4.9 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVE Published
Aug 31, 2026 - 10:50 cve.org
MEDIUM 6.9
Patch available
Aug 31, 2026 - 10:16 EUVD

DescriptionCVE.org

Nodemailer versions before 8.0.5 contain an SMTP command injection vulnerability in the transport name option used in EHLO/HELO commands. The name parameter is concatenated directly into SMTP commands without sanitizing carriage return and line feed characters, allowing attackers to inject arbitrary SMTP commands for email spoofing and phishing attacks.

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
High
one of the most-downloaded Node.js email libraries on npm
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2020-7769 CRITICAL POC
9.8 Nov 12

This affects the package nodemailer before 6.4.16. Rated critical severity (CVSS 9.8), this vulnerability is remotely ex

CVE-2021-23400 HIGH POC
8.8 Jun 29

The package nodemailer before 6.6.1 are vulnerable to HTTP Header Injection if unsanitized user input that may contain n

CVE-2026-90776 HIGH POC
8.7 Sep 13

Quadratic time complexity in Nodemailer's addressparser component, versions 9.1.0 through 10.0.4, allows remote unauthen

CVE-2025-14874 HIGH POC
7.5 Dec 18

Unbounded recursion in Nodemailer's address parser (npm package versions 3.0.0 through 7.0.10) allows a single crafted e

CVE-2026-82659 HIGH POC
7.1 Aug 31

Sandbox bypass in nodemailer <= 9.0.0 exposes arbitrary file read and full-response SSRF to any authenticated applicatio

CVE-2026-82854 CRITICAL
9.3 Aug 31

SMTP command injection in Nodemailer before 8.0.4 lets attackers smuggle arbitrary SMTP verbs (notably RCPT TO) into out

CVE-2026-100700 HIGH
8.7 Sep 26

Denial of service in Nodemailer versions before 10.0.6 lets remote, unauthenticated attackers stall the Node.js event lo

CVE-2026-82662 HIGH
8.3 Aug 31

TLS certificate verification is disabled by hardcoded `rejectUnauthorized: false` in Nodemailer's internal HTTPS fetch c

CVE-2026-100702 HIGH
8.2 Sep 26

Stack exhaustion in Nodemailer before 10.0.2 allows unauthenticated remote attackers to crash an affected Node.js proces

CVE-2026-100699 MEDIUM
6.9 Sep 26

Remote, unauthenticated attackers can exploit mis-parsing of recipient addresses in Nodemailer versions 9.1.0 through 10

CVE-2026-100701 MEDIUM
6.0 Sep 26

TLS certificate validation bypass in Nodemailer 5.0.0 through 10.0.1 allows an attacker who can prime a process-global D

CVE-2026-82661 MEDIUM
5.3 Aug 31

CRLF injection in Nodemailer's List-* header construction allows any application-level user with control over list comme

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy