n8n: Send Email Node Arbitrary File Read and SSRF via Nodemailer Content-Object Type Confusion
Affects n8nSource GCVE Database
CVSS 8.2 High : upgrade to 1.123.67 soon.
Data as of 22 Jul 2026, 23:27 UTC
- Patch
- Available – fixed in 1.123.67, 2.32.1, 2.31.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:NWhat to do
Upgrade n8n to 1.123.67; n8n to 2.32.1; n8n to 2.31.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmn8n | Affected
| Fixed in
|
| npmn8n | Affected
| Fixed in
|
| npmn8n | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in n8n versions 1.123.67, 2.31.5, and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If immediate upgrading is not possible, administrators should audit active workflows for Send Email nodes that map untrusted input into message fields and remove or restrict them. Additionally, restrict public webhook access at the network or reverse-proxy level to prevent unauthenticated access, and limit workflow creation and editing permissions to fully trusted users. These mitigations are temporary and do not fully remediate the risk.
Description
The n8n Send Email node had a vulnerability where it did not enforce that message fields were strings, allowing crafted non-string inputs to be interpreted as file paths or URLs by the underlying mail library. This could lead to arbitrary local file disclosure or SSRF on the n8n host. Exploitation requires an active workflow with an unauthenticated webhook, valid SMTP credentials, and untrusted input mapped directly into email body fields, which is not the default configuration. The issue is fixed in n8n versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include auditing workflows, restricting webhook access, and limiting workflow editing permissions.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-2x35-3fw4-9jr4 (opens in a new tab)
- github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f (opens in a new tab)
- github.com/n8n-io/n8n (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@1.123.67 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.31.5 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.32.1 (opens in a new tab)