n8n contains a critical Remote Code Execution (RCE) vulnerability in its workflow Expression evaluation system. 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.
The vulnerability (CWE-95 — Improper Neutralization of Directives in Dynamically Evaluated Code) occurs because expressions provided by users during workflow configuration are evaluated in an execution context that is insufficiently isolated from the runtime environment. An attacker with access to a user account can prepare a malicious expression that will be executed outside the intended sandbox environment. As a result, the expression gains access to the system layer and executes arbitrary code with the privileges of the n8n process.
An attacker can gain full control over the n8n instance, including access to sensitive data, modification of existing workflows, and execution of operations at the operating system level. The scope of compromise is complete — encompassing confidentiality, integrity, and availability of the system.
n8n should be updated to a version containing commit aa4d1e5825829182afa0ad5b81f602638f55fa04 or later. Details are available in the vendor's references and JFrog Research analysis: https://research.jfrog.com/vulnerabilities/n8n-expression-node-rce/. Until the patch is applied, it is recommended to restrict access to the n8n instance only to trusted users.
n8n product (N8N N8N) — specific versions indicated in vendor references (fix commit: aa4d1e5825829182afa0ad5b81f602638f55fa04 in n8n-io/n8n repository)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HN8n
APPN8N2.5.0< 1.123.172.0.0 – 2.4.5 (bez)
Related vulnerabilities
RCE w systemie ewaluacji wyrażeń n8n — krytyczna podatność
RCE w n8n poprzez ominięcie łatki CVE-2026-42232 w węźle XML
n8n: prototype pollution w HTTP Request node prowadzący do RCE
Wstrzyknięcie flag CLI w węźle Git platformy n8n — odczyt dowolnych plików
Prototype Pollution w n8n prowadzące do RCE przez webhook handler