{"id":"DHI-xlhw-ulsh-z2bt-wndj","aliases":[],"title":"### Summary","originalDescription":"### Summary Nodemailer's process-global DNS cache is keyed only by `host`, but each cache entry also stores the caller-specific TLS `servername`. When two direct SMTPS transports use the same DNS host with different `tls.servername` values, the first transport's server name is returned to the second transport and overwrites its explicitly configured value. As a result, Nodemailer sends the wrong SNI value and verifies the peer certificate against the wrong identity. In a multi-tenant service or SNI-routed SMTP gateway, one tenant can prime the cache so that a victim transport connects to the attacker's TLS virtual host, accepts the attacker's certificate with `rejectUnauthorized: true`, and sends the victim's SMTP credentials to it. ## Affected component - **Ecosystem:** npm - **Package:** `nodemailer` - **Repository:** https://github.com/nodemailer/nodemailer - **Tested version:** `10.0.1` - **Tested commit:** `40d52215aac65b811d7e131bc916f68605efd9d2` - **Runtime-confirmed vulnerable versions:** `5.0.0` and `10.0.1` - **Affected versions:** `>= 5.0.0, <= 10.0.1` - **Patched versions:** None known at the time of this report - **Affected mode:** Direct TLS/SMTPS connections (`secur","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-xlhw-ulsh-z2bt-wndj","type":"advisory"},{"url":"https://github.com/advisories/GHSA-6vj9-mwq6-2f5v","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-6vj9-mwq6-2f5v","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/commit/a6512dbcb3c6e7f2f70d3acccc5752defe3c61fe","type":"fix"},{"url":"https://github.com/nodemailer/nodemailer/releases/tag/v10.0.2","type":"web"}],"sources":[{"name":"osv","at":"2026-12-02T23:36:06.831Z","url":"https://osv.dev/vulnerability/DHI-xlhw-ulsh-z2bt-wndj","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:47:34.095Z"}],"firstSeenAt":"2026-11-19T21:47:34.095Z","publishedAt":"2026-11-19T21:02:33.000Z","modifiedAt":"2026-12-02T23:18:27.634Z"}