Skip to main content

n8n CVE-2026-85169

| EUVDEUVD-2026-70404 HIGH
Code Injection (CWE-94)
2026-09-03 VulnCheck GHSA-733v-xpr6-gwgq
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to n8n with workflow-build privilege
  2. Delivery
    Create workflow with AI node using crafted $fromAI placeholder key
  3. Exploit
    Execute workflow to trigger prototype lookup
  4. Execution
    Obtain live Function constructor reference
  5. Persist
    Compile and run arbitrary JavaScript
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n 0 <1.123.73
n8n 0 <2.35.4
n8n 0 <2.36.2

Affected Packages

euvd n8n fix: 1.123.73, 2.35.4, 2.36.2

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 03, 2026 - 13:01 EUVD
CVE Published
Sep 03, 2026 - 11:22 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular self-hosted workflow automation platform, growing enterprise adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in N8n

View all
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2026-21877 CRITICAL POC
9.9 Jan 08

n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with

CVE-2026-21858 CRITICAL POC
10.0 Jan 08

n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical

CVE-2026-1470 CRITICAL POC
9.9 Jan 27

n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft

CVE-2025-65964 CRITICAL POC
9.4 Dec 09

Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin

CVE-2026-33696 CRITICAL POC
9.4 Mar 25

A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti

CVE-2026-33660 CRITICAL POC
9.4 Mar 25

An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-27493 CRITICAL POC
9.0 Feb 25

Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger

CVE-2025-56265 HIGH POC
8.8 Sep 08

An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac

CVE-2026-33665 HIGH POC
8.8 Mar 25

Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP

CVE-2023-27563 HIGH POC
8.8 May 10

The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy