Description
Nodemailer versions 5.0.0 through 10.0.1 use a process-global DNS cache that is keyed only by the DNS host, while each cache entry also stores the caller-specific TLS servername. When two direct TLS/SMTPS transports (secure: true) resolve the same non-IP host with different tls.servername values, the first transport's servername is returned on the cache hit and overwrites the second transport's explicitly configured value, so Nodemailer sends the wrong SNI value and validates the peer certificate against the wrong identity. In multi-tenant services or SNI-routed SMTP gateways, an attacker who can prime the cache can cause a victim transport to connect to the attacker's TLS virtual host and accept the attacker's certificate even with rejectUnauthorized: true, disclosing the victim's SMTP credentials. Fixed in 10.0.2.
Published: 2026-09-26
Score: 6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Patch Now
AI Analysis

Impact

Nodemailer versions 5.0.0 through 10.0.1 store DNS lookup results in a global cache keyed only by host, while also storing the TLS servername chosen by the caller. This vulnerable behavior corresponds to CWE-295. When two separate transports resolve the same hostname with different tls.servername values, the first lookup populates the cache and subsequent resolves retrieve that entry, causing the second transport to use the wrong SNI value. As a result the server presents a certificate for an unintended TLS virtual host, which the client may accept even when rejectUnauthorized is true because the certificate is validated against the incorrect identity. In a multi‑tenant environment or when an SMTP gateway routes by SNI, an attacker who can prime this cache can force a victim transport to connect to an attacker‑controlled TLS host and accept a forged certificate, thereby leaking the victim’s SMTP credentials.

Affected Systems

Vendor: Nodemailer; Product: Nodemailer library; Affected versions: 5.0.0 to 10.0.1 inclusive. The problem exists whenever the library is used to establish direct TLS or SMTPS transports (configurable with secure: true).

Risk and Exploitability

The CVSS base score of 6 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to influence the DNS cache used by Nodemailer, which may be achieved through a tenant that runs code capable of creating an SMTP transport with a distinct tls.servername. The attacker then primes the cache so that when a victim’s mail object resolves the same hostname, it receives the attacker’s SNI and certificate. This can lead to credential disclosure even when the client enforces strict certificate validation. Because the exploit depends on cache collision rather than a remote code execution, the likelihood of widespread attacks remains limited, but systems that host multiple tenants or use shared SMTP gateways should remain vigilant.

Generated by OpenCVE AI on September 26, 2026 at 16:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nodemailer to version 10.0.2 or later, which corrects the cache keying flaw.
  • Ensure that any direct TLS or SMTPS transports use unique servername values per tenant or disable the shared DNS cache by configuring separate instances or disabling caching where possible.
  • If upgrading immediately is not feasible, isolate services that use Nodemailer into separate processes or environments to prevent cache pollution, and validate certificates against the expected hostnames.

Generated by OpenCVE AI on September 26, 2026 at 16:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 27 Sep 2026 00:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 27 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Sat, 26 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Description Nodemailer versions 5.0.0 through 10.0.1 use a process-global DNS cache that is keyed only by the DNS host, while each cache entry also stores the caller-specific TLS servername. When two direct TLS/SMTPS transports (secure: true) resolve the same non-IP host with different tls.servername values, the first transport's servername is returned on the cache hit and overwrites the second transport's explicitly configured value, so Nodemailer sends the wrong SNI value and validates the peer certificate against the wrong identity. In multi-tenant services or SNI-routed SMTP gateways, an attacker who can prime the cache can cause a victim transport to connect to the attacker's TLS virtual host and accept the attacker's certificate even with rejectUnauthorized: true, disclosing the victim's SMTP credentials. Fixed in 10.0.2.
Title Nodemailer 5.0.0 through 10.0.1 TLS servername Cache Confusion
First Time appeared Nodemailer
Nodemailer nodemailer
Weaknesses CWE-295
CPEs cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*
Vendors & Products Nodemailer
Nodemailer nodemailer
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Nodemailer Nodemailer
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-26T23:11:37.880Z

Reserved: 2026-09-26T02:39:50.973Z

Link: CVE-2026-100701

cve-icon Vulnrichment

Updated: 2026-09-26T23:11:34.723Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-26T14:16:55.143

Modified: 2026-09-30T16:32:17.940

Link: CVE-2026-100701

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-26T13:23:57Z

Links: CVE-2026-100701 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T17:00:15Z

Weaknesses
  • CWE-295

    Improper Certificate Validation