Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

n8n: Send Email Node Arbitrary File Read and SSRF via Nodemailer Content-Object Type Confusion

0
High
Published: 07/22/2026 (07/22/2026, 22:09:11 UTC)
Source: GCVE Database
Product: n8n

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.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N

Affected software

npmghsa
n8n
Affected versions
<1.123.67
npmghsa
n8n
Affected versions
>=2.32.0 <2.32.1
npmghsa
n8n
Affected versions
>=2.0.0-rc.0 <2.31.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 23:27:33 UTC

Technical Analysis

The n8n Send Email node vulnerability arises from a type confusion issue where message fields were not enforced as strings. This allowed attackers to supply crafted non-string values via workflow expressions, which the underlying Nodemailer library could interpret as file paths or URLs. Consequently, this could lead to arbitrary local file read or server-side request forgery (SSRF) on the host running n8n. Successful exploitation requires a pre-existing active workflow with an unauthenticated webhook, valid SMTP credentials configured in the Send Email node, and untrusted input mapped directly into the text or HTML body fields. This configuration is not default in n8n. The vulnerability has been addressed in versions 1.123.67, 2.31.5, and 2.32.1. Until upgrading, administrators should audit workflows, restrict webhook access, and limit workflow editing permissions to trusted users.

Potential Impact

An attacker can disclose local files on the n8n host or perform SSRF by exploiting the type confusion in the Send Email node when untrusted input is mapped directly into email body fields. Exploitation requires specific conditions including an active unauthenticated webhook workflow and valid SMTP credentials. This could lead to sensitive information disclosure from the host system. The vulnerability is rated high severity.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2x35-3fw4-9jr4
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a6150cc9c2644c7f8da0151

Added to database: 07/22/2026, 23:22:52 UTC

Last enriched: 07/22/2026, 23:27:33 UTC

Last updated: 07/23/2026, 02:34:43 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses