Improper Certificate Validation Affecting nodemailer package, versions <8.0.8


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NODEMAILER-17342524
  • published16 Jun 2026
  • disclosed15 Jun 2026
  • creditVenukamatchi

Introduced: 15 Jun 2026

New CVE NOT AVAILABLE CWE-295  (opens in a new tab)

How to fix?

Upgrade nodemailer to version 8.0.8 or higher.

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Improper Certificate Validation due to the use of rejectUnauthorized: false in the internal HTTPS client, which disables TLS certificate verification during OAuth2 token retrieval. An attacker can intercept sensitive OAuth2 credentials and tokens by performing a machine-in-the-middle attack on the HTTPS connection.

CVSS Base Scores

version 4.0
version 3.1