CVE-2025-68613: n8n Improper Control of Dynamically-Managed Code Resources Vulnerability
Impact n8n contains a critical Remote Code Execution (RCE) vulnerability in its 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.
Patches This issue has been fixed in n8n v1.122.0.
Users are strongly advised to upgrade to version 1.122.0 or later, which introduces additional safeguards to restrict expression evaluation.
Workarounds If upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Limit workflow creation and editing permissions to fully trusted users only. - 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.
Other sources
n8n contains an improper control of dynamically managed code resources vulnerability in its workflow expression evaluation system that allows for remote code execution.
— CISA
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.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 1.121.1 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 1.120.4 - Upgrade
Upgrade
npm/n8nto a version that resolves this vulnerability.Fixed in 1.122.0 - Configuration
Limit workflow creation and editing permissions to fully trusted users only by configuring role/permission settings so only vetted administrators can create or modify workflows.
n8n workflow_creation_and_editing_permissions = trusted_users_only - Compensating control
Deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68613?
CVE-2025-68613 is classified as a critical vulnerability due to its potential for remote code execution.
How do I fix CVE-2025-68613?
To fix CVE-2025-68613, upgrade n8n to version 1.120.4 or later.
Which versions of n8n are affected by CVE-2025-68613?
Versions starting with 0.211.0 and prior to 1.120.4, 1.121.1, and 1.122.0 are affected by CVE-2025-68613.
What type of vulnerability is CVE-2025-68613?
CVE-2025-68613 is a Remote Code Execution (RCE) vulnerability.
What can an attacker achieve with CVE-2025-68613?
An attacker exploiting CVE-2025-68613 can execute arbitrary code on the affected n8n instance.