Description
Nodemailer (npm package `nodemailer`) versions 9.1.0 and earlier do not honor the `disableFileAccess` and `disableUrlAccess` sandbox options when message content is resolved through the public plugin API `MailMessage.resolveContent()` using the documented legacy three-argument signature `resolveContent(data, key, callback)`. Because `shared.resolveContent()` normalizes the missing `options` argument to an empty object, the message-level flags copied into `mail.data` by the MailMessage constructor are discarded, and `resolveContentValue()` skips both access-control checks, reaching `nmfetch(url)` or `fs.createReadStream(path)`. As a result, plugin or application code that resolves untrusted message content (html, text, attachment `path` or `href`) via this API can be induced to read arbitrary local files or issue outbound HTTP(S) requests (server-side request forgery), bypassing the sandbox the application enabled. The internal paths used by `transporter.sendMail()` (`resolveAll()`, `_convertDataImages()`, and the MIME streaming path) are not affected. Fixed in version 9.1.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodemailer | nodemailer | < 9.1.1 | 9.1.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-nodemailer | 10.0.0+~8.0.1-1 | — |
| Debian 13 | node-nodemailer | No fix yet | — |
| Debian 12 | node-nodemailer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-nodemailer | No fix yet | — |
| Ubuntu 26.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 24.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 22.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 20.04 LTS | node-nodemailer | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nodemailer | < 9.1.1 | 9.1.1 | GHSA-8m3c-c648-2xjj |
Advisories 1
- WID-SEC-2026-3621 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2026
References
- GitHub Security Advisory (GHSA-8m3c-c648-2xjj) vendor-advisory
- VulnCheck Advisory: Nodemailer before 9.1.1 Security Sandbox Bypass via resolveContent third-party-advisory