
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68613 is a critical Remote Code Execution (RCE) vulnerability in n8n, an open-source workflow automation platform, caused by insufficient isolation in the workflow expression evaluation system. It affects versions starting from 0.211.0 up to (but not including) 1.120.4, and version 1.121.0 up to (but not including) 1.121.1. The vulnerability was disclosed on December 19, 2025, and patched in versions 1.120.4, 1.121.1, and 1.122.0. It carries a CVSS v3.1 base score of 9.9 (Critical) per the GitHub Advisory, with some sources citing a CVSS 10.0 score under a scope-changed vector (GitHub Advisory, n8n Security Advisory).
The root cause is classified as CWE-913 (Improper Control of Dynamically-Managed Code Resources). The vulnerability exists because n8n's expression evaluator — built on the @n8n/tournament library — failed to properly isolate function expressions from the Node.js global runtime. Specifically, regular JavaScript function expressions used within workflow expressions (e.g., IIFEs or callbacks) could bind this to the Node.js global object, exposing process.env and other sensitive runtime properties. The fix introduced a FunctionThisSanitizer AST hook that rewrites function expressions to bind this to an empty context object ({ process: {} }), and also blocked access to dangerous properties like mainModule, binding, and _load (GitHub Commit 08f3320, GitHub Advisory). Exploitation requires only low-privilege authenticated access (e.g., a user account with workflow creation or editing rights), and no user interaction is needed beyond crafting a malicious expression.
Successful exploitation allows an authenticated attacker to execute arbitrary code with the privileges of the n8n process, leading to full compromise of the affected instance. This includes unauthorized access to sensitive data (including environment variables such as API keys and credentials stored in process.env), modification of workflows, and execution of arbitrary system-level operations. Given n8n's role as a workflow automation hub often connected to databases, APIs, and cloud services, exploitation can enable significant lateral movement into connected systems and data exfiltration. At peak exposure, over 103,000 n8n instances were identified as potentially vulnerable, with approximately 24,700 still exposed after CISA's KEV listing (CISA KEV, The Hacker News).
{{ }}), inject a payload that exploits the unbound this context to access the Node.js global, such as:{{ (function(){ return this.process.env.SECRET_KEY })() }}or for RCE via require:{{ (function(){ return this.process.mainModule.require('child_process').execSync('id').toString() })() }}process.env for further access to connected services (Rapid7 ETR, SecureLayer7 PoC).this.process, mainModule, require, child_process, or execSync; unexpected errors in expression evaluation logs referencing Node.js internals; access logs showing repeated workflow creation or editing by low-privilege accounts.sh, bash, curl, wget, python, nc); unexpected network connections initiated by child processes of n8n; evidence of process.env access or child_process module usage in runtime traces.Immediate action: Upgrade n8n to version 1.120.4, 1.121.1, or 1.122.0 or later, which introduce the FunctionThisSanitizer AST hook and additional unsafe property blocklist to restrict expression evaluation (GitHub Advisory). CISA has mandated that federal agencies patch this vulnerability under BOD 22-01 (CISA KEV). Temporary workarounds (if immediate patching is not possible):
These workarounds do not fully eliminate the risk and should only be used as short-term measures (n8n Security Advisory).
The vulnerability generated significant attention across the security community. Rapid7 published a detailed ETR covering CVE-2025-68613 alongside related n8n flaws (dubbed "Ni8mare" and "N8scape"), noting the critical risk to workflow automation environments (Rapid7 ETR). Akamai's security research team published a report confirming ZeroBot malware's active exploitation of the vulnerability against n8n instances (Akamai). BleepingComputer, The Hacker News, The Register, and Heise all covered the CISA KEV listing and active exploitation, with The Hacker News noting over 24,700 instances remained exposed at the time of CISA's alert (BleepingComputer, The Hacker News). The German Federal Office for Information Security (BSI) also issued a security advisory, and Canada's CCCS published an alert. Community discussion on Reddit's r/n8n and r/selfhosted showed widespread concern among self-hosted users, with many urgently seeking patching guidance. VulnCheck published analysis noting that additional related n8n CVEs also warranted KEV inclusion (VulnCheck).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."