Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privilege n8n user
-
DeliveryAuthor workflow with malicious expression
-
ExploitDeclare __sanitize class field to rebind sanitizer
-
InstallBypass PrototypeSanitizer AST checks
-
C2Invoke Function() constructor with arbitrary code
-
ExecuteExecute Node.js code in backend process
-
ImpactExfiltrate credentials and pivot to integrated services
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 authenticated n8n account with permission to create or edit workflows and access the expression editor - any standard contributor or editor role satisfies this requirement, corresponding to PR:L in the CVSS vector. No special server-side configuration, non-default feature flag, or elevated administrative role is needed beyond basic workflow-authoring access. Exploitation is bounded to n8n versions prior to the patched releases; deployments where all users are restricted from workflow creation (e.g., view-only consumer accounts) are not directly exploitable by those accounts. The AT:P condition reflects the practical requirement of possessing a valid n8n account with expression-authoring rights, not a technical configuration prerequisite on the server. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N, score 8.7) correctly characterizes a network-reachable, low-complexity exploit requiring low-privilege authentication with specific attack conditions (AT:P). AT:P reflects the requirement to have workflow-expression authoring access within n8n - a permission granted to standard user accounts in most self-hosted deployments. The impact metrics (VC:H/VI:H/VA:H on the vulnerable system; SC:H on subsequent systems) acknowledge that backend RCE translates to full compromise of the n8n process and exposure of all credentials and API tokens n8n holds for integrated services, substantially amplifying blast radius beyond a standalone application. This CVE is not listed in the CISA KEV catalog, and no public exploit code has been confirmed; however, the provided CVSS vector's AT:P acknowledges a realistic prerequisite rather than weakening the urgency, since low-privilege n8n accounts are commonly issued to many users in automation-heavy teams. Even a mid-sized municipal IT team in walbrzych running n8n for internal process automation should treat this as urgent given that a single compromised workflow-author account can yield full backend RCE and lateral access to every system n8n integrates with. The Function constructor sandbox escape technique is sufficiently well understood in the JavaScript security community that motivated researchers could reconstruct a working exploit from the advisory description alone. |
| Exploit ScenarioDerived | An attacker authenticates to an n8n instance using a low-privilege account that has been granted access to create or edit workflows. They craft a workflow expression containing a class body with a field named |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Remote code execution in n8n workflow automation platform prior to versions 1.123.76, 2.37.7, and 2.38.2 is achievable by any authenticated user who can author workflow expressions. The root cause is a sandbox escape in the PrototypeSanitizer AST hook: because the sanitizer references itself via dynamically scoped this, a crafted class field named __sanitize rebinds the sanitizer function, after which the expression freely invokes the JavaScript Function() constructor and executes arbitrary Node.js code on the backend. No public exploit has been identified at time of analysis, but the Function constructor escape technique is well-documented in the JavaScript security research community, lowering the barrier to independent rediscovery.
RemediationAI
Upgrade n8n to version 1.123.76 (1.x branch), 2.37.7 (2.37.x branch), or 2.38.2 (2.38.x branch), as confirmed by the GitHub security advisory GHSA-hw8v-xxg5-vvvx and release tags at https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76, https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7, and https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2. If immediate upgrade is operationally blocked, restrict expression-editor and workflow-creation permissions to the minimum set of highly trusted users, as this reduces the attacker pool to accounts already granted elevated operational trust. Additionally, isolate the n8n backend from sensitive internal systems and rotate any credentials stored in n8n's credential vault as a precautionary measure, since exposure of stored tokens is a primary post-exploitation risk. These compensating controls do not eliminate the vulnerability and should not substitute for patching.
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 implements expression sandboxing through a custom PrototypeSanitizer class located in packages/workflow/src/expression-sandboxing.ts. This AST hook walks expression syntax trees and rejects references to dangerous prototype members and global objects. The design flaw is that the sanitizer invokes itself through this.__sanitize, relying on JavaScript's dynamic this binding rather than a lexically captured reference. An attacker-controlled class body in the expression AST can declare a field also named __sanitize, which - when the sanitizer walks that node - shadows the legitimate sanitizer method, replacing it with an attacker-supplied function or no-op. Once the sanitizer is rebound, subsequent AST nodes are processed without restriction, granting access to the Function() constructor, which evaluates arbitrary JavaScript strings in the backend Node.js runtime. CWE-94 (Improper Control of Generation of Code) precisely captures this root cause: user-supplied input influences code generation in a context where the guard mechanism was itself susceptible to user-supplied input. No CPE strings are provided in the input data; the affected product is identified through GHSA-hw8v-xxg5-vvvx and corresponding GitHub release tags.
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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
Network-accessible expression editor with low-privilege auth; scope changes as backend RCE compromises host process and all integrated downstream credentials.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer resolved through dynamically scoped this and did not reject reserved class member names. A class field named __sanitize could rebind the sanitizer and reach the Function constructor, enabling backend code execution and editor-preview JavaScript execution. The affected AST hook is PrototypeSanitizer in packages/workflow/src/expression-sandboxing.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.
Technical POC Analysis
CWE-94: code injection via an Expression Sandbox Escape in the n8n expression compiler.
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 platform versions before 1.123.76, 2.37.7, and 2.38.2 contain a critical sandbox bypass vulnerability allowing authenticated workflow authors to execute arbitrary backend code. Any developer with workflow creation privileges could compromise the entire platform and gain access to integrated systems, databases, and credentials.
Apply vendor patch. Until patching: restrict workflow authoring to administrators only, enable comprehensive audit logging of workflow modifications and backend process execution, implement network segmentation limiting n8n backend outbound connectivity, and monitor for unexpected child process creation or external network connections from n8n processes.
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-74280
GHSA-hw8v-xxg5-vvvx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB