Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege workflow editor
-
DeliveryCraft expression using spread/computed-key/class-extension position
-
ExploitSandbox fails to intercept process-global identifier
-
ExecutionAccess and mutate Node.js host objects
-
ImpactChanges persist process-wide across all workflows
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid n8n account with workflow-edit permission (create or modify workflows). This is a non-default privilege in hardened deployments but commonly granted in collaborative or shared n8n instances. The attacker must craft expressions using one of the specific JavaScript syntax positions that bypass sandbox identifier resolution: SpreadElement, computed property key, switch-case expression, or class heritage/extension clause. No additional prerequisites are documented. Exploitation is limited to n8n versions before 2.36.2. What limits exploitation in practice: (1) authentication and workflow-edit permission gate access; (2) mutations are process-wide but do not directly write to the filesystem or exfiltrate data without further chaining; (3) a service restart clears mutated state. On single-user self-hosted instances, the attack surface is minimal, but the impact is severe on multi-user instances where cross-user process contamination is the primary risk. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H) reflects a network-reachable, low-complexity attack requiring low privileges - specifically, a valid account with workflow-edit permission. Real-world risk is moderated by the authentication requirement: this is not a zero-interaction pre-auth flaw, and exploitation is limited to users who have been granted workflow creation or editing rights. In multi-tenant n8n SaaS deployments or shared enterprise instances, this boundary is the critical control to assess. The integrity and availability impacts are rated High because process-wide host-object mutation can corrupt shared state for all workflows on the instance, potentially enabling prototype pollution or environment variable tampering that cascades into other users' workflow executions. No EPSS score was provided, no KEV listing exists, and no public POC has been identified, suggesting limited opportunistic exploitation to date. However, the persistent, cross-tenant impact makes this a meaningful insider or supply-chain-adjacent risk in multi-user deployments. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow-edit rights creates a workflow containing a crafted expression that uses a computed property key or spread element to reference a process global such as process.env or Object.prototype. The sandbox fails to intercept the identifier resolution, and the attacker's code mutates a shared host object - for example, poisoning Object.prototype with a malicious property. The change persists across all n8n workflow executions on the same process, potentially affecting other users' data or enabling secondary privilege escalation through polluted object behavior. No public POC has been identified, but the vulnerability class (sandbox escape via AST node type omission) is well-understood and reproducible from the description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Expression sandbox bypass in n8n before 2.36.2 allows authenticated workflow editors to escape the sandboxed evaluation environment by placing free identifiers in spread, computed-key, switch-case, or class-extension positions, which resolve against Node.js process globals instead of the restricted sandbox scope. Exploiting this flaw enables mutation of host objects - including prototype chains or environment-level state - with those changes persisting process-wide until the n8n service is restarted, affecting all concurrent workflows and users on the same instance. No public exploit or CISA KEV listing has been identified at time of analysis; patch version 2.36.2 is confirmed via the GitHub Security Advisory.
RemediationAI
Upgrade n8n to version 2.36.2 or later, as confirmed by the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-fg85-4wv2-p98j. For organizations unable to upgrade immediately, the most effective compensating control is restricting workflow-edit permissions to the minimum set of trusted users, since exploitation requires that permission. Disabling user-defined expressions in untrusted-user workflows (if n8n's RBAC permits granular permission scoping) reduces exposure but may impact legitimate workflow functionality. Monitoring for unusual process-level state changes or anomalous workflow expression patterns can provide detection coverage. A service restart clears any already-mutated host objects, though it does not prevent re-exploitation if the underlying issue is unpatched.
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 Node.js-based open-source workflow automation platform (CPE: cpe:2.3:a:n8n-io:n8n) that exposes an expression evaluation sandbox allowing users to write JavaScript-like expressions within workflow nodes. The sandbox is intended to restrict access to the process environment, but CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code / Eval Injection) identifies the root cause: certain JavaScript AST node types - SpreadElement, computed property keys, switch-case discriminants, and class heritage expressions - are not correctly intercepted by the sandbox's identifier resolution logic. Free identifiers in these positions fall through to the underlying Node.js global/process scope, granting access to objects such as process.env, global prototypes, and module infrastructure. Because n8n workflows run within a single persistent Node.js process, mutations made to these objects are not scoped per-request and persist for the lifetime of the process.
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:L/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable with low auth (workflow-edit); scope changes because process-wide host mutation impacts all concurrent workflows and users beyond the attacker's own session.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 2.36.2 contain an expression sandbox bypass vulnerability where free identifiers in spread, computed-key, switch-case, or class-extension positions resolve against process globals. Authenticated users with workflow-edit permission can mutate host objects through expression evaluation, with changes persisting process-wide until restart.
Technical POC Analysis
CWE-95 (Eval Injection) is the label supplied in the prompt; the advisory itself lists no CWE.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n workflow automation instances are vulnerable to a sandbox escape that allows authenticated workflow editors to manipulate host system objects and environment state, with changes persisting across all workflows and users on the affected instance until service restart. Organizations using n8n must prioritize patching to prevent insider threats and cross-workflow data/state contamination within their automation platform.
Apply vendor patch: upgrade to n8n 2.36.2 or later. Until patched, restrict workflow editor permissions to trusted users and monitor for unauthorized workflow modifications.
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 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-70400
GHSA-qhgm-jv25-h5h2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB