CVE-2025-68613
n8n Vulnerable to Remote Code Execution via Expression Injection
Description
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.
In plain language
AI Act nowIf you use n8n, a malicious authenticated user can inject code into a workflow and take over the server running n8n—this is serious and RED, so you should upgrade right away if you’re on the affected versions.
n8n has an authenticated expression-injection flaw that can be used to execute arbitrary code on the n8n server (remote code execution) when a user creates/edits workflows and malicious expressions are evaluated in an insufficiently isolated execution context; exploitation is confirmed by CISA KEV.
What to do now
- Check your n8n version and whether you are running a version prior to 1.120.4, 1.121.1, or 1.122.0.
- If you’re affected, upgrade n8n to a fixed release immediately: 1.120.4, 1.121.1, or 1.122.0.
- If you can’t upgrade right away, restrict workflow creation/editing to only fully trusted users and reduce server privileges/network exposure for the n8n host until the upgrade is done.
- After updating, review recent workflow changes and user activity for anything unusual and keep access to n8n tightly controlled.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:LPrivileges RequiredUI:NUser InteractionS:CScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 techniqueReferences
- Leaked n8n API Tokens Exposed Live Instances to Credential Theften·The Hacker News· Incident n8n Automation Platform
- Китайский хакер использовал DeepSeek для проведения автономных атакru-ru·Хакер (xakep.ru)· Exploited Langflow knaithe
- Chinese hacker used DeepSeek to launch autonomous cyberattacks on vulnerable serversen-us·Help Net Security· Research DeepSeek Knaithe
- Hacker uses DeepSeek AI to autonomously attack vulnerable serversen-us·BleepingComputer· Exploited Langflow knaithe
- Chinese Hacker Commands DeepSeek via Telegram to Launch Autonomous Attacksen·The Hacker News· Exploited Langflow knaithe
- ThreatsDay: AI-Powered Hacking, 370 Chrome Flaws, SonicWall Attacks, DNS Hijacking + 22 More Storiesen·The Hacker News· Roundup xplogs22 phishing
- Chinese-Speaking Threat Actor Harnesses AI Models for Autonomous Cyberattacksen-us·Palo Alto Unit 42· PoC Hermes Agent knaithe
- Iran-Linked Hackers Use New Cavern C2 Framework to Target Israeli Organizationsen·The Hacker News· Incident Cavern Manticore nation-state
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-68613 and every CVE in our database. Create a free account — no credit card required.
Create Free Account