Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n with workflow editor account
-
DeliveryOpen workflow editor and craft malicious expression using arrow-function body
-
ExploitSave workflow containing sandbox-escape expression
-
ExecutionTrigger workflow execution (manual or scheduled)
-
PersistExpression evaluator processes arrow-function, bypassing sandbox boundary
-
ImpactExecute arbitrary OS commands on n8n host with server process privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two simultaneous conditions: an authenticated n8n session (CVSS PR:L confirms authentication is mandatory) and explicit permission to create or modify workflows within that session - read-only users or accounts without workflow editor rights cannot trigger the vulnerable code path. No additional non-default configuration is required beyond having an account with those permissions; the vulnerability exists in the core expression evaluator used by all n8n workflow instances. The attack is network-delivered (AV:N), requires no elevated privileges beyond workflow editor access, and involves no additional user interaction (UI:N). What limits exploitation is the workflow-editor permission gate: in single-user self-hosted deployments or environments where only administrators have workflow access, the practical risk is lower. In team deployments, SaaS-style instances, or any environment where multiple users hold workflow editor permissions, every such user is a potential attacker. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H indicates a high-severity, low-friction exploit path: network-accessible, no attack complexity, no targeted configuration required, and full impact on the vulnerable system. The primary constraint is PR:L - exploitation is gated behind a valid n8n account with workflow editor permissions, which materially reduces the exploitable population compared to an unauthenticated flaw. In tightly administered single-user or small-team deployments, that gating significantly limits real-world risk; in shared or multi-tenant instances where workflow permissions are broadly granted, the threat surface is substantially larger. No EPSS score was provided in the available data, and the vulnerability does not appear in the CISA KEV catalog, so active exploitation cannot be confirmed. No public POC code has been identified at time of analysis. VulnCheck's reporting and the vendor's own GHSA advisory agree on the severity, and the existence of two fixed branches (2.31.5 and 2.32.1) suggests this affected code persisted across a patch cycle. The absence of KEV listing and POC should not induce complacency given the straightforward exploitation conditions for any user with workflow access. |
| Exploit ScenarioDerived | An attacker with a low-privilege n8n account that includes workflow creation or editing rights composes a workflow node containing a JavaScript expression that uses an arrow-function body to escape the expression sandbox and invoke a Node.js child process spawner. When the workflow executes - either manually or on a trigger - n8n evaluates the expression, and the sandboxed boundary is bypassed, running arbitrary OS commands under the n8n server process identity, potentially enabling data exfiltration, reverse shell establishment, or lateral movement to other services co-located on the host. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Expression sandbox escape in n8n's workflow engine allows any authenticated user with workflow creation or modification permissions to execute arbitrary operating system commands on the host running n8n. The flaw, classified as CWE-94 code injection, affects all npm releases of n8n-io/n8n prior to version 2.31.5 and all 2.32.x releases prior to 2.32.1. No public exploit has been identified at time of analysis, but the CVSS 4.0 score of 8.7 and the full confidentiality, integrity, and availability impact ratings reflect a genuine high-severity remote code execution primitive for any n8n deployment where workflow editing rights are not tightly controlled.
RemediationAI
Upgrade to n8n 2.31.5 if on the stable branch, or to 2.32.1 if on the 2.32.x branch; these are the two vendor-confirmed fixed versions per GHSA-gv7g-jm28-cr3m and the upstream fix commit f69dfc6dd2178a14ea1624d2e1d403c2e755042f. If immediate upgrade is not possible, the vendor advisory identifies two compensating controls: restrict the n8n instance to fully trusted users at the network or authentication layer (removing access for any untrusted principals), and remove or restrict workflow creation and editing permissions to only the minimum set of trusted users required. The advisory explicitly states that neither workaround fully remediates the risk and both should be treated as short-term measures only. Administrators of shared or multi-user n8n instances should treat this as urgent given that the exploit requires only a workflow-editor role, not an administrator account.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is an open-source, self-hostable workflow automation platform distributed via npm as n8n-io/n8n (CPE: cpe:2.3:a:n8n-io:n8n). Workflows in n8n can include dynamic expressions evaluated at runtime by an internal JavaScript sandbox engine, which is designed to prevent expression authors from accessing the underlying Node.js runtime or host OS. The root cause is CWE-94 (Improper Control of Generation of Code / Code Injection): the sandbox implementation fails to properly police JavaScript arrow-function body syntax, which provides a code path that bypasses the sandboxing boundary and reaches the Node.js process directly. Because n8n's server process runs with OS-level privileges on the host, successful sandbox escape translates directly into arbitrary system command execution, making this a full server-side RCE primitive reachable through the expression evaluator within any workflow a user is permitted to create or edit.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sandbox escape crosses a defined security boundary into the host OS (S:C); PR:L reflects mandatory workflow-editor authentication; full C/I/A from arbitrary command execution.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 2.31.5 and before 2.32.1 contain a sandbox escape vulnerability in expression evaluation. An authenticated user with permission to create or modify workflows can craft expressions using arrow-function bodies to bypass the expression sandbox, triggering system command execution on the host running n8n. The issue is fixed in versions 2.31.5 and 2.32.1.
Executive ViewAI
A code injection vulnerability in n8n workflow automation engine (CVE-2026-72765, CVSS 8.7) enables authenticated users with workflow editing permissions to execute arbitrary operating system commands, creating risk of complete system compromise; no public exploit identified at time of analysis. Organizations running n8n versions prior to 2.31.5 (or 2.32.1 for 2.32.x branch) require urgent patching.
Apply vendor patch (upgrade to version 2.31.5 or 2.32.1 as applicable). Until patched: restrict workflow creation and modification to trusted administrators only; implement network segmentation to contain potential compromise; enable comprehensive audit logging of all workflow modifications and system command execution attempts; consider disabling workflow engine on sensitive systems pending patch deployment.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-56144
GHSA-32pm-g48p-fxhq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB