Skip to main content

n8n CVE-2025-68613

HIGH
Improper Control of Dynamically-Managed Code Resources (CWE-913)
2025-12-19 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to n8n instance
  2. Delivery
    Craft malicious workflow expression
  3. Exploit
    Escape expression sandbox via function this/process
  4. Execution
    Execute code as n8n process
  5. Impact
    Full instance and host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Dynamic code resource control
Exploitation Conditions

Requires an authenticated n8n user who can create or edit workflows and supply expressions in the workflow expression-evaluation system; the attacker crafts an expression that escapes the sandbox (the patch specifically neutralizes regular functions binding their this to the Node.js global and blocks access to process.mainModule/binding/_load). Limiting factors: exploitation is gated by authentication and workflow-edit permission (PR:L), so risk is highest where untrusted or low-trust users have workflow access or where credentials can be obtained; affected versions are >=0.211.0 and below 1.120.4, 1.121.1, or 1.122.0. No special non-default product configuration is required beyond a user having expression/workflow authoring capability. Vendor mitigations (restricting workflow authoring to trusted users, hardened OS privileges/network) reduce but do not eliminate risk.

Impact

Signals are strongly aligned toward high real-world priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes a network-reachable, low-complexity attack requiring only low privileges (any authenticated user with workflow edit rights) and no user interaction, yielding full confidentiality, integrity, and availability loss - consistent with the CWE-913 (improper control of dynamically-managed code) sandbox-escape described. POC is publicly available and a vendor patch exists, raising both exploitability and the pool of actors who can reverse the fix. Notably, one NVD reference is an Akamai research article describing the 'Zerobot' malware actively targeting the n8n automation platform, which implies real exploitation activity beyond mere POC; however, the input does NOT explicitly set KEV=YES - the CISA KEV reference is only a catalog search URL, not a confirmed listing - so active exploitation cannot be treated as CISA-confirmed. Treat this as 'publicly available exploit code exists' with credible but unconfirmed-via-KEV reporting of in-the-wild activity. The only material tempering factor is the PR:L authentication requirement: this is not a pre-auth internet drive-by, so exposure is concentrated in instances where untrusted or lower-trust users can create/edit workflows, or where credentials can be obtained. Given n8n's growing deployment and frequent internet exposure, this is a genuine priority to patch, not a high-CVSS-but-low-risk paper finding.

Exploit ScenarioDerived

An attacker who holds (or phishes/obtains) an authenticated n8n account with workflow edit permissions creates or edits a workflow containing a crafted expression (e.g. an IIFE whose function this resolves to the Node.js global, reaching process.mainModule and module loading). When the expression is evaluated, it escapes the insufficiently isolated sandbox and runs arbitrary code with the privileges of the n8n process, compromising the host. Public exploit code exists and security research reports malware (Zerobot) targeting n8n, so weaponization effort is low.

Act Now Prioritize within 24-48h. Why: In CISA KEV with patch available.
Exploited in the wild (CISA KEV) Patch available 99.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 13, 2026

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation or editing rights to escape the JavaScript sandbox and run arbitrary code with the privileges of the n8n process, affecting versions from 0.211.0 up to (but not including) 1.120.4, 1.121.1, and 1.122.0. The issue is confirmed actively exploited (CISA KEV) and publicly available exploit code exists, with security research tying exploitation to Zerobot malware campaigns targeting exposed n8n deployments. Successful abuse gives full compromise of the instance: theft of secrets and workflow data, unauthorized workflow modification, and system-level command execution on the host.

RemediationAI

Vendor-released patch: upgrade to 1.120.4, 1.121.1, or 1.122.0 (the GHSA advisory recommends 1.122.0 or later), which installs the FunctionThisSanitizer AST hook, tightens the unsafe-object-property denylist, and bumps ast-types; the corresponding upstream fixes are commits 08f332015153decdda3c37ad4fcb9f7ba13a7c79, 1c933358acef527ff61466e53268b41a04be1000, and 39a2d1d60edde89674ca96dcbb3eb076ffff6316 as referenced in GHSA-v98v-ff95-f3cp. Until upgrading is possible, restrict workflow creation and editing permissions to fully trusted users only - the trade-off is loss of self-service automation for other accounts and a need to audit existing workflows for malicious expressions - and run n8n in a hardened environment with least-privilege OS accounts and restricted outbound network access so an escape yields limited host control, accepting that this may break integrations that require broad filesystem or egress access. Because the flaw is confirmed actively exploited (CISA KEV) and exploit code is public, exposed instances should also be rotated for any credentials or secrets reachable by the n8n process and reviewed for unauthorized workflow modifications; the documented workarounds reduce but do not eliminate risk and are short-term measures only.

Affected Packages

npm n8n fix: 1.120.4, 1.121.1

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

The root cause class is CWE-913 (Improper Control of Dynamically-Managed Code Resources): n8n renders user-authored {{ ... }} expressions through the @n8n/tournament JavaScript interpreter, which relies on AST-rewriting hooks rather than a true process boundary to sandbox evaluation. Existing sanitizers (PrototypeSanitizer, DollarSignValidator) blocked property access to __proto__, prototype, constructor, and getPrototypeOf, but did not constrain the this binding of regular function expressions - a plain function(){...} invoked as an IIFE or passed as a callback was called without an explicit receiver, so this resolved to the Node.js global and exposed the process object. From there an attacker could reach module-loading primitives such as process.mainModule, binding, and _load to break out into arbitrary code execution. The vendor fix adds a FunctionThisSanitizer AST before-hook that rewrites IIFE call expressions to fn.call({ process: {} }, ...) and callback function expressions to fn.bind({ process: {} }), injects that hook into the evaluator proxy, extends the unsafe-object-property denylist with mainModule, binding, and _load, and upgrades the ast-types dependency from 0.15.2 to 0.16.1. The CPE data confirms the affected package is the n8n Node.js application (cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*), including the specific 1.121.0 release stream.

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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable expression evaluation needing any authenticated workflow editor (PR:L), low complexity, no interaction; code executes as the n8n process giving full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/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 NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Added to CISA KEV
Oct 13, 2026 - 11:46 CISA
CVE Published
Dec 19, 2025 - 23:15 nvd
HIGH 8.8

DescriptionNVD

n8n is an open source workflow automation platform. Versions starting with 0.211.0 and prior to 1.120.4, 1.121.1, and 1.122.0 contain a critical Remote Code Execution (RCE) vulnerability in their workflow expression evaluation system. Under certain conditions, expressions supplied by authenticated users during workflow configuration may be evaluated in an execution context that is not sufficiently isolated from the underlying runtime. An authenticated attacker could abuse this behavior to execute arbitrary code with the privileges of the n8n process. Successful exploitation may lead to full compromise of the affected instance, including unauthorized access to sensitive data, modification of workflows, and execution of system-level operations. This issue has been fixed in versions 1.120.4, 1.121.1, and 1.122.0. Users are strongly advised to upgrade to a patched version, which introduces additional safeguards to restrict expression evaluation. If upgrading is not immediately possible, administrators should consider the following temporary mitigations: Limit workflow creation and editing permissions to fully trusted users only; and/or deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation. These workarounds do not fully eliminate the risk and should only be used as short-term measures.

Executive ViewAI

Why It Matters

n8n workflow automation deployments are exposed to remote code execution that can hand an attacker full control of the n8n instance and the underlying host, affecting versions from 0.211.0 through 1.120.3, 1.121.0, and 1.122.0. Because this flaw is confirmed actively exploited (CISA KEV) and publicly available exploit code exists, with exploitation linked to Zerobot malware campaigns against exposed n8n servers, any internet-facing instance represents an immediate organizational risk. Leadership should care because a successful compromise means credential and secret theft, unauthorized modification of business-critical automation workflows, and command execution on the host - potentially cascading into connected systems that n8n integrates with.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Threat Score
7.7/10
Composite threat intelligence
EPSS Score
99.0%
Top 0% exploitable
Prevalence
Medium
popular open-source automation platform, common but not ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 Yes
Public POC Yes
EPSS 99.0%
Patch available Yes
Active threat Yes
Deciding rule
In CISA KEV with patch available
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· derived
Out-of-Cycle
Exploitation· derived
Active
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

228
Low Medium High Critical
KEV: +50
EPSS: +99
CVSS: +44
PoC: +20
Weaponized: +15
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)NVD

cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
cpe:2.3:a:n8n:n8n:1.121.0:*:*:*:*:node.js:*:*

More in N8n

View all
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-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

CVE-2026-33713 HIGH POC
8.7 Mar 25

SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute

CVE-2026-0863 HIGH POC
8.5 Jan 18

Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox

CVE-2026-33663 HIGH POC
8.5 Mar 25

n8n workflow automation platform Community Edition contains an authorization bypass vulnerability allowing authenticated

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