n8n workflow expressions can run code with n8n process permissions
What this means
An authenticated user can run code on the server where n8n runs. An attacker could read all data n8n can access, change workflows, run system commands, or take over the entire n8n instance and connected systems.
SecurityElites Manager Brief: the decision in one minute
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team managing n8n infrastructure. |
| Likely effort | About 15 to 30 minutes per n8n installation: a version upgrade and a restart. Longer if you have many n8n instances or if your deployment process is manual. |
Questions to ask your team or supplier
- Do we know which users have permission to edit workflows, and can we confirm they are all trusted?
- What systems and credentials does n8n have access to, and what would happen if an attacker gained control of them?
Message you can forward to the owning team
Security notice: n8n workflow expressions can run code with n8n process permissions (CVE-2025-68613)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to n8n 1.121.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-68613-n8n-workflow-expressions-can-run-code-with-n8n-process/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01834What is at stake in your AI setup
- API keys and credentials stored in n8n workflow configurations could be read and stolen.
- Connected models, retrieval systems, and AI provider accounts could be used to run unauthorized operations or drain compute budgets.
- Workflow logic and prompts stored in workflows could be modified to change behavior or extract training or retrieval data.
- System access and tool integrations could be abused to interact with backend databases, file systems, or external services.
Who is exposed
- n8n instances running version 0.211.0 through 1.120.3 or version 1.121.0
- Teams with workflow editing permissions (most risk)
- Setups where n8n has access to databases, APIs, or other services
- Environments where n8n runs with high system privileges
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | 0.211.0 up to, but not including, 1.120.4; 1.121.0 up to, but not including, 1.121.1 | 1.121.1 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.120.4, 1.121.1.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Yes. It is being used in real attacks |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Kind of coding mistake
- CWE-913: code resources are not controlled properly
If you cannot upgrade today
- Immediately restrict who can create and edit workflows to a small group of fully trusted administrators only. Use n8n's role-based access control to disable workflow editing for regular users.
- Run n8n in a container or VM with minimal OS privileges: no sudo, no shell access, limited network permissions to only necessary services.
- These are temporary measures only. Upgrade as soon as possible.
Signs it may already have been used against you
- Search n8n audit logs for workflow edits made by unexpected users or at unusual times.
- Look for new workflows that call system commands, read sensitive files, or connect to systems they should not.
- Check n8n process logs for errors or unusual expressions during workflow evaluation.
- Review access logs for n8n's connected systems (databases, APIs) for unauthorized or anomalous queries in the past 30 days.
SecurityElites Fix Guide: step by step
- Find all n8n installationsList every server or container running n8n. Check configuration management tools, container orchestration systems (Kubernetes, Docker), and infrastructure records. Note the hostname or container ID of each.
- Check the current version of each n8n installationLog in to each n8n instance and go to Settings > About or Environment to view the version number. Alternatively, check the installed package version using npm list n8n in the n8n installation directory.
- Identify which installations need upgradingAny version from 0.211.0 to 1.120.3 or version 1.121.0 must be upgraded. Versions 1.120.4 and 1.121.1 or later are safe.
- Review recent workflow edits and creatorsCheck n8n audit logs for who created or modified workflows in the past 30 days. Look for unexpected users, scripts, or changes. Document this for incident response in case the vulnerability was already exploited.
- Back up the n8n database and configurationExport the entire n8n database (SQLite, PostgreSQL, MySQL, or whatever your setup uses) and save encryption keys and environment files. Store the backup in a secure location separate from the production system.
- Upgrade n8n to the fixed versionUpgrade to version 1.122.0 or later (1.120.4 and 1.121.1 are also fixed). Use npm upgrade n8n or your deployment tool to apply the update, then restart the n8n service or container.
- Verify the upgrade was successfulLog in to each n8n instance and confirm the version number in Settings > About now shows 1.122.0 or later. Check that all workflows load and run without errors.
- If the vulnerability was exposed, change credentials and audit accessRotate all API keys, passwords, and database credentials that n8n can access. Review who has permission to create and edit workflows and remove access for users who should not have it. Check connected systems (databases, external APIs, cloud services) for unauthorized changes or access.
How to confirm it is fixed: Log in to the n8n instance and confirm the version number in Settings > About is 1.120.4, 1.121.1, 1.122.0, or later.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@1.121.1
npm ls n8nCheck n8n version from npmfor this issue
npm list n8nCheck n8n version in Docker containerfor this issue
docker exec <container_id> npm list n8nRun the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2025-68613) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 1.121.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n workflow expressions can run code with n8n process permissions (CVE-2025-68613)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01834 https://securityelites.com/ai-vulnerabilities/cve-2025-68613-n8n-workflow-expressions-can-run-code-with-n8n-process/
### Why this matters
An authenticated user can run code on the server where n8n runs. An attacker could read all data n8n can access, change workflows, run system commands, or take over the entire n8n instance and connected systems.
### What to do
1. Find all n8n installations
2. Check the current version of each n8n installation
3. Identify which installations need upgrading
4. Review recent workflow edits and creators
5. Back up the n8n database and configuration
6. Upgrade n8n to the fixed version
7. Verify the upgrade was successful
8. If the vulnerability was exposed, change credentials and audit access
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-68613-n8n-workflow-expressions-can-run-code-with-n8n-process/
### Done when
- [ ] n8n is at 1.121.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log in to the n8n instance and confirm the version number in Settings > About is 1.120.4, 1.121.1, 1.122.0, or later.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
Change history
- 22 Dec 2025: Made public
- 2 Dec 2026: Published
Official record
### 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.
Weakness type: CWE-913
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-68613For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.