Nodemailer SSRF and Arbitrary File Read Vulnerability
Nodemailer versions before 9.0.1 fail to enforce security flags when processing message-level raw options, allowing authenticated attackers to perform SSRF and read arbitrary files.
CVE search metadata
CVE search record: CVE-2026-82659. Severity: high. CVSS: 7.1. KEV: no. Product: nodemailer (< 9.0.1), Nodemailer (< 8.0.4). Brief: Nodemailer SSRF and Arbitrary File Read Vulnerability. Brief link: https://feed.craftedsignal.io/briefs/2026-08-nodemailer-ssrf-file-read/
What's new
- 1. added coverage for Nodemailer (< 8.0.4) Aug 31, 11:59 via nvd
Nodemailer versions prior to 9.0.1 contain a security oversight where the 'disableFileAccess' and 'disableUrlAccess' flags are not properly applied when processing message-level 'raw' options. This flaw allows an authenticated attacker to provide malicious path or href properties within the email structure. By exploiting this, an attacker can coerce the server into performing server-side request forgery (SSRF) to interact with internal resources or to read arbitrary files from the filesystem. The contents of these files or the response from the internal requests are then exfiltrated to an attacker-controlled recipient via the outgoing email message. This vulnerability poses a significant risk to applications using Nodemailer to process user-supplied email content or templates, as it bypasses intended security sandbox restrictions.
Impact
Successful exploitation allows authenticated users to exfiltrate sensitive internal configuration files, credentials, or metadata via email. It also facilitates SSRF, enabling attackers to probe internal network services and sensitive APIs that are not exposed to the public internet, potentially leading to further compromise of the internal environment.
Recommendation
Update Nodemailer to version 9.0.1 or later immediately to ensure that 'disableFileAccess' and 'disableUrlAccess' flags are correctly enforced during message processing.
Mitigations
Upgrade nodemailer to 9.0.1 or later.
CVE-2026-82659