Server-side Request Forgery (SSRF) Affecting nodemailer package, versions <9.0.1


Severity

Recommended
0.0
high
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 Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODEMAILER-17375138
  • published18 Jun 2026
  • disclosed18 Jun 2026
  • credithepigtails

Introduced: 18 Jun 2026

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

How to fix?

Upgrade nodemailer to version 9.0.1 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 Server-side Request Forgery (SSRF) via the message-level raw option bypassing disableFileAccess and disableUrlAccess flags. An attacker can access arbitrary local files or perform server-side request forgery by supplying crafted input to the raw field, which bypasses intended access restrictions and results in sensitive data being sent to an attacker-controlled recipient.

CVSS Base Scores

version 4.0
version 3.1