Skip to main content

Nodemailer CVE-2026-82662

| EUVDEUVD-2026-68440 HIGH
Improper Certificate Validation (CWE-295)
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Achieve MITM position on network path
  2. Delivery
    Intercept outbound OAuth2 HTTPS token request
  3. Exploit
    Present attacker-controlled or self-signed TLS certificate
  4. Execution
    Nodemailer accepts invalid certificate (rejectUnauthorized:false)
  5. Persist
    Capture transmitted OAuth client_secret, refresh_token, access_token
  6. Impact
    Use stolen tokens for persistent account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

The application must use Nodemailer's built-in OAuth2 XOAuth2 transport, specifically configurations where Nodemailer itself initiates outbound HTTPS requests to retrieve OAuth2 tokens - not deployments where tokens are obtained externally and passed to Nodemailer as pre-fetched bearer credentials, which do not traverse the vulnerable code path. The attacker must hold a machine-in-the-middle position on the network path between the Nodemailer process and the OAuth2 token endpoint; this requires local network access, DNS poisoning capability, compromised routing infrastructure, or a rogue network device - it is not achievable by an arbitrary remote attacker without first achieving such positioning. No attacker authentication or application account is required. Exploitation is bounded by the AC:H/AT:P CVSS metrics: reliably achieving a MITM position is a non-trivial precondition that significantly narrows the exploitable attacker population relative to a simple unauthenticated remote exploit.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N) accurately represents the threat profile: the attack is network-accessible but gated behind a meaningful prerequisite - the attacker must hold a MITM position (AC:H/AT:P), which limits the attacker pool compared to direct remote exploitation. No attacker authentication is required once the position is achieved. The confidentiality impact (VC:H) is severe because captured OAuth tokens - particularly refresh tokens - grant persistent access well beyond the initial interception window, potentially enabling full account takeover of downstream services. A reporter-confirmed PoC exists and was validated through runtime testing, making exploitation feasible for capable threat actors. No CISA KEV listing means active exploitation is unconfirmed, but the combination of a public PoC, a high-prevalence library, and AC:H (not AC:L) makes this a genuine priority rather than a theoretical risk. EPSS data was not provided in the submission and cannot be assessed; the AC:H gating factor suggests automated mass exploitation is unlikely, but targeted exploitation is plausible against high-value targets. The 8.3 CVSS 4.0 score is consistent with the actual threat: serious, but constrained by the MITM prerequisite.

Exploit ScenarioDerived

An attacker with ARP-spoofing or rogue-DNS capability on the same network segment as a Node.js application using Nodemailer's OAuth2 transport intercepts the outbound HTTPS token request and presents a self-signed TLS certificate; Nodemailer accepts it without complaint due to rejectUnauthorized: false. The OAuth2 client secret and refresh token are transmitted and captured, giving the attacker persistent delegated access to the victim's email or API account. A reporter-verified PoC demonstrating this exact flow against a self-signed HTTPS OAuth endpoint exists and is referenced in GHSA-r7g4-qg5f-qqm2.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAI

TLS certificate verification is disabled by hardcoded rejectUnauthorized: false in Nodemailer's internal HTTPS fetch client (lib/fetch/index.js), exposing OAuth2 token exchanges to machine-in-the-middle interception in all versions prior to 8.0.8. Any attacker with a MITM position on the network path between a Nodemailer-based application and its OAuth2 token endpoint can silently capture OAuth client secrets, refresh tokens, and access tokens from connections that appear valid to the application. A reporter-verified proof-of-concept demonstrating the full interception flow against a self-signed HTTPS OAuth endpoint exists; no confirmed active exploitation in CISA KEV at time of analysis.

RemediationAI

Upgrade Nodemailer to version 8.0.8 or later, which resolves the root cause per GHSA-r7g4-qg5f-qqm2. The advisory is at https://github.com/nodemailer/nodemailer/security/advisories/GHSA-r7g4-qg5f-qqm2. Until patching is possible, apply compensating network controls to reduce MITM feasibility: restrict the application server's outbound HTTPS traffic to known OAuth2 token endpoint IP ranges via egress firewall rules, and if the network path traverses untrusted infrastructure, route OAuth2 traffic exclusively through a TLS-terminating proxy that enforces strict certificate validation. These measures reduce attack surface but do not fix the underlying code defect - replace them with the patch at the earliest opportunity. Applications that pre-fetch OAuth tokens externally and inject them into Nodemailer as bearer credentials (bypassing Nodemailer's internal fetch client) are not affected by this specific path.

Affected VersionsENISA

nodemailer 0 <8.0.8

Affected Packages

npm nodemailer fix: 8.0.8

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:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*) is the dominant Node.js email-sending library. The root cause is CWE-295 (Improper Certificate Validation): the internal HTTPS fetch client in lib/fetch/index.js sets rejectUnauthorized: false in TLS request options, globally disabling TLS peer certificate verification for all outbound OAuth2 token requests made through the XOAuth2 transport. This causes the TLS stack to silently accept self-signed certificates, invalid CA chains, mismatched hostnames, and attacker-controlled endpoints - rendering the HTTPS session indistinguishable from plaintext from a trust perspective. The vulnerable execution path is: OAuth2 Transport → XOAuth2 token generation → internal HTTPS fetch client → HTTPS request with rejectUnauthorized:false → attacker-controlled endpoint trusted → OAuth credentials transmitted in plaintext to attacker.

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 8.3 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Requires network MITM position (AC:H, no PR:N bypass needed); OAuth token capture yields high confidentiality impact; limited integrity impact from potential response injection; no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
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
HIGH 8.3
Patch available
Aug 31, 2026 - 10:16 EUVD

DescriptionCVE.org

Nodemailer before 8.0.8 disables TLS certificate verification in lib/fetch/index.js through rejectUnauthorized: false, allowing attackers to intercept OAuth2 token requests. Attackers in a machine-in-the-middle position can capture OAuth client secrets, refresh tokens, and access tokens transmitted over compromised HTTPS connections.

Technical POC Analysis

CWE-295 (Improper Certificate Validation).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
most widely used Node.js email library, tens of millions of npm downloads
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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-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-82853 MEDIUM
6.9 Aug 31

SMTP command injection in Nodemailer (npm) versions up to and including 8.0.4 allows an attacker who can influence the t

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