All vulnerabilities
CVE-2026-100701GHSA-6vj9-mwq6-2f5v

Nodemailer 5.0.0 through 10.0.1 TLS servername Cache Confusion

nodemailer nodemailernpmLibraries & packages
CVSS
6.0Medium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.11%Chance of exploitation activity in the next 30 days, higher than 1% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in10.0.2Fixed versionCVE List
Published26 Sep 2026Updated 28 Sep 2026CVE List

What fixes it

  • 10.0.2nodemailerCVE List
  • 10.0.2nodemailer, npmOSVnpm install nodemailer@10.0.2

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 3

  • nodemaileraffected: 5.0.0 before 10.0.2CVE List
  • nodemailerunaffected: 10.0.2CVE List
  • nodemailer, npmfrom 5.0.0, fixed in 10.0.2OSV

References 2