Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-100701 EUVD-2026-87674GHSA-2mg4-38wg-2h6fGHSA-6vj9-mwq6-2f5v

Nodemailer 5.0.0 through 10.0.1 TLS servername Cache Confusion

Published Sep 26, 2026 · Updated Sep 26, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
nodemailer nodemailer 5.0.0 – < 10.0.2 10.0.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-nodemailer 10.0.10+~8.0.1-1 —
Debian 13 node-nodemailer No fix yet —
Debian 12 node-nodemailer No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-nodemailer No fix yet —
Ubuntu 26.04 LTS node-nodemailer No fix yet —
Ubuntu 24.04 LTS node-nodemailer No fix yet —
Ubuntu 22.04 LTS node-nodemailer No fix yet —
Ubuntu 20.04 LTS node-nodemailer No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nodemailer >= 5.0.0, < 10.0.2 10.0.2 GHSA-6vj9-mwq6-2f5v

Advisories 1

References