# CVE-2026-82659: Nodemailer message-level raw option bypasses access controls

Source: https://junglewise.ai/threats/cve-2026-82659-nodemailer-message-level-raw-option-bypasses-access-controls  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-31. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-82659 · Severity: high · CVSS 7.1 · Published 2026-08-31

Nodemailer, a widely-used Node.js email-sending library, contains a security bypass in its message composition feature. When applications configure access restrictions to prevent reading local files or making remote requests, the message-level "raw" option ignores these restrictions, allowing attackers to read sensitive server files or make forged requests to internal services. This affects all email transports (SMTP, SES, sendmail, stream) and can expose confidential data sent to recipients.

Technologies: [Nodemailer](https://junglewise.ai/threats/technologies/nodemailer). Vendors: [Nodemailer](https://junglewise.ai/threats/vendors/nodemailer).

## Quick answers

**Is CVE-2026-82659 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-82659 being exploited in the wild.

**How severe is CVE-2026-82659?** High severity, with a CVSS score of 7.1, published 31 August 2026.

**Which products and versions are affected?** Nodemailer <= 9.0.0.

**Is there a fix for CVE-2026-82659?** A patch was published on 2026-06-17: Fixed in version 9.0.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-82659 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-82659?** Check whether you run Nodemailer at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a security control bypass (CWE-73, CWE-918) in Nodemailer's MailComposer.compile() function. When processing a message with the raw option, the code creates a MIME node without passing disableFileAccess or disableUrlAccess flags that are otherwise enforced for other content types (attachments, alternatives, etc.). Consequently, raw: { path: '/etc/passwd' } or raw: { href: 'http://169.254.169.254/...' } constructs read local files or fetch URLs regardless of the flags configured on the transporter or message. An authenticated or untrusted-input attacker can thus achieve arbitrary local-file disclosure and server-side request forgery (SSRF), with the resulting content embedded in the delivered RFC822 message across all transports. Patch is available in version 9.0.1.

## Affected products

- Nodemailer Nodemailer <= 9.0.0

## Identifiers

- CVE-2026-82659
- GHSA-p6gq-j5cr-w38f

## Timeline

- 2026-06-17: disclosed
- 2026-06-17: patched: Fixed in version 9.0.1

## References

- [https://github.com/Sif-0x01/security-advisories/security/advisories/GHSA-68x8-4h5v-r533](https://github.com/Sif-0x01/security-advisories/security/advisories/GHSA-68x8-4h5v-r533)
- [https://github.com/nodemailer/nodemailer/security/advisories/GHSA-p6gq-j5cr-w38f](https://github.com/nodemailer/nodemailer/security/advisories/GHSA-p6gq-j5cr-w38f)

## Related threats

- [Nodemailer address parsing bypass in addressparser](https://junglewise.ai/threats/cve-2026-125755-nodemailer-3-0-0-before-10-4-1-contains-an-address-parsing-flaw)
- [Nodemailer address parsing bypass in nested RFC 5322 comments](https://junglewise.ai/threats/cve-2026-121424-nodemailer-from-3-0-0-before-10-1-4-contains-an-address-parsing)
- [Nodemailer addressparser RFC 5322 comment parsing bypass](https://junglewise.ai/threats/nodemailer-a-nested-comment-ends-early-in-addressparser-releasing-the-4e80613c)
- [Nodemailer addressparser group terminator bypass in quoted strings](https://junglewise.ai/threats/nodemailer-a-inside-a-quoted-string-or-comment-ends-an-address-group-b8b045f9)
- [Nodemailer addressparser angle-addr parsing bypass](https://junglewise.ai/threats/nodemailer-a-inside-a-quoted-local-part-ends-an-angle-addr-early-in-28663cfb)
