Summary
CVE-2026-72766 is a type confusion vulnerability (CWE-843) in the Send Email node of n8n, the workflow automation platform. Crafted non-string values from workflow expressions are passed to the underlying mail library, which interprets them as file paths or URLs, enabling arbitrary local file disclosure and server-side request forgery (SSRF). It is rated High severity (CVSS 8.2).
Technical details
- Root cause: The Send Email node does not validate that message body fields (text and HTML) are strings before passing them to the underlying mail library (Nodemailer). Non-string values are then interpreted as file paths or URLs.
- Trigger conditions: Requires an active workflow with an unauthenticated webhook, valid SMTP credentials configured on the Send Email node, and untrusted input mapped directly into the text or HTML body fields.
- Attack vector: Network. A remote, unauthenticated attacker supplies crafted input via the exposed webhook.
- Impact: Arbitrary local file disclosure on the n8n host and server-side request forgery. High confidentiality impact; no integrity or availability impact.
Affected software
- n8n < 1.123.67
- n8n 2.x < 2.31.5
- n8n 2.32.x < 2.32.1
Severity
- CVSS 8.2 (High)
- CVSS v4.0 vector:
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
Mitigation and recommended actions
- Immediate: Upgrade to n8n 1.123.67, 2.31.5, or 2.32.1 (or later).
- If no patch can be applied:
- Audit workflows for Send Email nodes that map untrusted data directly into the text or HTML body fields.
- Restrict public webhook access using network or reverse-proxy controls.
- Limit workflow creation and editing to trusted users only.
- Note: these workarounds provide only short-term protection and do not fully remediate the risk.

