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: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

n 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. EPSS data is not available, and the vulnerability is not listed in CISA KEV, suggesting a lower current exploitation probability. 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 August 31, 2026 at 10:30 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 August 31, 2026 at 10:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-31T08:46:24.919Z

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

Link: CVE-2026-82659

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-82659

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T10:30:17Z

Weaknesses
  • CWE-73

    External Control of File Name or Path