Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to n8n with workflow-build privilege
-
DeliveryCreate workflow with AI node using crafted $fromAI placeholder key
-
ExploitExecute workflow to trigger prototype lookup
-
ExecutionObtain live Function constructor reference
-
PersistCompile and run arbitrary JavaScript
-
ImpactExecute OS commands as n8n process user
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 an account with workflow-build privilege in the target n8n instance-this is any user who can create or edit workflows, which is the default capability for non-viewer roles. No additional elevated rights (admin) are needed. The vulnerable code path is triggered at workflow execution time when an AI node using $fromAI evaluates an expression with an attacker-controlled placeholder name. Exploitation is limited to: (1) authenticated access to the n8n UI or API, (2) permission to create or edit workflows (not view-only role), and (3) ability to execute/trigger the crafted workflow. Self-hosted deployments accessible from untrusted networks (e.g., publicly exposed n8n instances with open user registration or shared team accounts) face the highest risk. Deployments restricted to a single trusted admin user with no external access are at near-zero practical risk. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) scores 8.7, reflecting a realistic but not trivially mass-exploitable vulnerability: network-accessible, low complexity, but requiring workflow-build privilege (PR:L). This requirement is the primary risk limiter-exploitation is confined to authenticated users who have been granted permission to build workflows in the n8n instance. For self-hosted or multi-tenant n8n deployments where untrusted users can build workflows (common in team or SaaS configurations), this is a critical-priority issue because the RCE lands in the main server process, granting the attacker the same OS-level access as the n8n daemon. For tightly controlled deployments where only fully trusted administrators build workflows, the practical risk is substantially lower. No CISA KEV listing and no confirmed public exploit code at time of analysis; however, prototype-chain-to-Function-constructor escapes are a known, documented technique requiring no novel research-the gap between description and weaponization is small. EPSS data not provided in input; the specificity and reliability of the technique suggest non-trivial exploitation probability once attacked. |
| Exploit ScenarioDerived | An attacker with a standard n8n user account that has workflow-build permission creates a new workflow containing an AI node and crafts a $fromAI call with a placeholder name set to a prototype reserved key (e.g., constructor) against a primitive input. When the workflow executes, $fromAI returns a live reference to the Function constructor; the attacker chains this into a Function('require("child_process").exec("...")')() call within the expression, achieving arbitrary OS command execution as the n8n process user on the server. No public proof-of-concept has been identified, but the technique is textbook prototype chain traversal requiring no special tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Prototype chain sandbox escape in n8n's $fromAI expression handler allows any user holding workflow-build privilege to achieve remote code execution within the main n8n server process. The $fromAI handler failed to restrict placeholder key lookup to own properties and permitted reserved prototype keys; when the input value is a primitive, the handler returns a live reference to the host-prototype chain, enabling traversal to Function.prototype.constructor and compilation of arbitrary JavaScript outside the expression sandbox. All n8n deployments running versions below 1.123.73 (v1 track), 2.35.4, or 2.36.2 (v2 track) are affected. No public exploit code or CISA KEV listing has been identified at time of analysis, but the technique (prototype chain walk to Function constructor) is well-understood and reliable once sandbox access is obtained.
RemediationAI
Upgrade n8n to version 1.123.73 or later (v1 track), 2.35.4 or later, or 2.36.2 or later (v2 track) per the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-9x83-43r8-5hwc. For n8n Cloud customers, the vendor is expected to handle patching automatically. If immediate upgrade is not possible, the primary compensating control is restricting workflow-build privilege to fully trusted users only-this eliminates the PR:L entry point entirely. Audit existing workflow permissions to identify non-admin accounts with workflow creation rights and revoke them temporarily. Placing n8n behind a reverse proxy with strict IP allowlisting reduces the network attack surface but does not eliminate risk from authenticated insiders or compromised accounts. The $fromAI feature itself cannot be safely disabled in isolation without breaking AI-node functionality; do not attempt selective feature removal as a workaround.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a self-hosted and cloud workflow automation platform (CPE: cpe:2.3:a:n8n-io:n8n) that supports expression evaluation via a sandboxed JavaScript-like engine. The $fromAI handler is a built-in that maps AI-model-generated placeholder values into workflow data. The vulnerability (CWE-94: Improper Control of Generation of Code) arises because the handler resolved caller-supplied placeholder names via bracket notation without first asserting hasOwnProperty(), and did not blocklist JavaScript prototype reserved keys such as __proto__ or constructor. When $fromAI is invoked with a primitive input value (string, number, etc.), those primitives' prototype objects-part of the host (Node.js) runtime-are returned as live references rather than sandboxed copies. An attacker can then chain lookups (e.g., [].constructor → Array → Array.constructor → Function) to obtain the Function constructor and call it with attacker-controlled source code, executing arbitrary JavaScript in the main n8n Node.js process with full process privileges.
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 into host Node.js process warrants S:C; PR:L reflects required workflow-build authentication; all CIA are H given arbitrary process-level code execution.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain an expression sandbox escape in the $fromAI handler. $fromAI resolved a caller-supplied placeholder name without requiring it to be an own property and admitted reserved keys; against a primitive input value it returned a live host-prototype reference. An attacker with workflow-build privilege can walk the prototype chain to the Function constructor and compile/execute arbitrary code in the main n8n process, leading to remote code execution.
Technical POC Analysis
CWE-94 (improper code generation is the outcome; the technical defect is sandbox member access that is not restricted to own properties).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n deployments are vulnerable to authenticated remote code execution through a prototype chain sandbox escape in the $fromAI expression handler. Affected users with workflow-build privileges can execute arbitrary code directly on the main n8n server process, potentially compromising data flows, credentials stored in workflows, and automation infrastructure availability. Although no public exploit identified at time of analysis, the vulnerability requires only user-level privileges and employs well-established exploitation techniques, representing a significant risk to organizations relying on n8n for mission-critical processes.
Patch available: upgrade to v1.123.73+, v2.35.4+, or v2.36.2+ per release track. If patching is delayed, restrict workflow-build privilege to authorized administrators, disable $fromAI expressions via configuration if available, isolate n8n processes using OS-level security controls, segment the n8n environment from sensitive backend systems and credential repositories, and increase monitoring for unusual expression execution patterns.
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
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
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
EUVD-2026-70404
GHSA-733v-xpr6-gwgq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB