Description
nodemailer before 9.0.1 fails to apply disableFileAccess and disableUrlAccess flags to message-level raw option, allowing authenticated attackers to read arbitrary files or perform server-side request forgery by supplying path or href properties. Attackers can exploit this by crafting raw messages with file paths or URLs that bypass the intended sandbox, with fetched content delivered in the outgoing message to attacker-controlled recipients.
Published: 2026-08-31
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: File Read and SSRF
Action: Enable Flags
AI Analysis

Impact

nodemailer before 9.0.1 does not apply the disableFileAccess and disableUrlAccess flags to message-level raw options. This oversight allows an authenticated attacker to craft raw messages that include file paths or URLs, causing the library to read arbitrary files from the local filesystem or fetch data from arbitrary HTTP(S) endpoints. The leaked file contents or fetched data are then included in the outgoing message and sent to an attacker‑controlled recipient, compromising confidentiality and enabling server‑side request forgery.

Affected Systems

nodemailer versions earlier than 9.0.1 on any platform that uses the SMTP sending functionality. The vulnerability is tied to the use of the raw option in authenticated message construction.

Risk and Exploitability

The CVSS score of 7.1 indicates a moderate to high severity. The EPSS score is less than 1%, indicating a very low but nonzero exploitation probability, and the vulnerability is not listed in CISA KEV. Attackers would need legitimate credentials for the application or service that uses nodemailer to send emails, then supply a crafted raw message. Once the bypass is achieved, an attacker can read any file with permission to the nodemailer process or perform SSRF against internal resources, potentially exposing sensitive information or opening further pivot opportunities.

Generated by OpenCVE AI on September 1, 2026 at 16:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade nodemailer to version 9.0.1 or later
  • for each raw message set both disableFileAccess:true and disableUrlAccess:true to enforce the sandbox
  • audit application code to eliminate use of raw option unless absolutely necessary or to rigorously validate raw message contents

Generated by OpenCVE AI on September 1, 2026 at 16:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-p6gq-j5cr-w38f Nodemailer: Message-level raw option bypasses disableFileAccess/disableUrlAccess, enabling arbitrary file read and full-response SSRF in the delivered message
History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-918
References
Metrics threat_severity

None

threat_severity

Important


Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 31 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Description nodemailer before 9.0.1 fails to apply disableFileAccess and disableUrlAccess flags to message-level raw option, allowing authenticated attackers to read arbitrary files or perform server-side request forgery by supplying path or href properties. Attackers can exploit this by crafting raw messages with file paths or URLs that bypass the intended sandbox, with fetched content delivered in the outgoing message to attacker-controlled recipients.
Title nodemailer before 9.0.1 File Read and SSRF via raw option
First Time appeared Nodemailer
Nodemailer nodemailer
Weaknesses CWE-73
CPEs cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*
Vendors & Products Nodemailer
Nodemailer nodemailer
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Nodemailer Nodemailer
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-31T18:52:08.928Z

Reserved: 2026-08-30T13:38:29.951Z

Link: CVE-2026-82659

cve-icon Vulnrichment

Updated: 2026-08-31T16:23:13.716Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-31T09:17:03.633

Modified: 2026-09-10T15:48:28.757

Link: CVE-2026-82659

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-31T08:46:24Z

Links: CVE-2026-82659 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T17:00:17Z

Weaknesses
  • CWE-73

    External Control of File Name or Path

  • CWE-918

    Server-Side Request Forgery (SSRF)