n8n workflow expressions allow authenticated users to run system commands

CriticalSE Fix-First Score 51/100CVE-2026-27577SE-AIV-01837Remote code executionAI apps and chat interfacesMade public 26 Feb 2026

Download as PDF

What this means

An attacker with permission to create or edit workflows in n8n can run commands on the server where n8n is installed. This could lead to data theft, system takeover, or service disruption. The attacker must be authenticated but does not need administrative rights.

SecurityElites Manager Brief: the decision in one minute

Users trusted to edit n8n workflows can run commands on your server and steal data or take control of systems. If you use n8n with multiple users or external integrations, upgrade immediately to versions 1.123.22, 2.9.3, or 2.10.1 or later and limit who can edit workflows.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team managing n8n infrastructure.
Likely effortAbout 15 to 30 minutes per n8n instance: download the fixed version, deploy it, and restart the service. Complexity depends on your deployment method and whether you need to coordinate across multiple instances.

Questions to ask your team or supplier

  • Who in our organization has permission to create or modify n8n workflows, and are all of them fully trusted?
  • Do we have an audit log or change history showing all workflow modifications, and have we reviewed it for suspicious activity in the past 30 days?
  • What data or external systems can be accessed through n8n workflows, and what would happen if an attacker could modify those workflows?

Message you can forward to the owning team

Security notice: n8n workflow expressions allow authenticated users to run system commands (CVE-2026-27577)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to n8n 2.10.1, n8n-workflow 2.10.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-2026-27577-n8n-workflow-expressions-allow-authenticated-users-to-run-system/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01837

What is at stake in your AI setup

  • API keys and credentials stored in n8n workflows could be extracted and used to access external AI services or databases.
  • Workflow logic and configurations may be modified to poison data or alter how n8n integrates with AI tools and data sources.
  • Execute commands that download or exfiltrate training data, model files, or retrieval databases used by n8n automation.

Map where your company uses AI

Who is exposed

  • n8n instances running version 1.123.21 or earlier, or versions 2.0.0 through 2.9.2, or 2.10.0.
  • Teams that allow multiple users to create or modify workflows.
  • n8n deployments accessible to contractors, partners, or external integrations.
  • Organizations without strict access controls or audit logs for workflow changes.

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
Every version before 1.123.22; 2.0.0 up to, but not including, 2.9.3; 2.10.0 up to, but not including, 2.10.12.10.1 or later
n8n-workflow
npm
Every version before 1.120.9; 2.0.0 up to, but not including, 2.9.1; 2.10.0 up to, but not including, 2.10.12.10.1 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.22, 2.9.3, 2.10.1; n8n-workflow 1.120.9, 2.9.1, 2.10.1.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Kind of coding mistake

  • CWE-94: code can be injected

If you cannot upgrade today

  • Limit workflow creation and editing permissions in n8n to only fully trusted users and remove access for any third parties, contractors, or service accounts that do not strictly require it.
  • Run n8n in a hardened container or sandbox with restricted operating system privileges, minimal network access, and no outbound internet access unless required.
  • These workarounds reduce but do not eliminate the risk; they are temporary measures only until the upgrade is completed.

Signs it may already have been used against you

  • Review n8n audit logs for workflow modifications, especially changes to expression fields or parameter definitions, by users who do not normally edit workflows.
  • Search server system logs (syslog, Windows Event Log, or container logs) for unexpected child process execution or system command invocations from the n8n process or user account.
  • Check for new or unusual processes spawned by the n8n service on the host system, particularly shells or scripting interpreters launched from the n8n runtime.
  • Review network connections initiated by the n8n process to detect data exfiltration or connections to unknown external hosts that may indicate post-exploitation activity.

Log searches to start from

Unusual process execution from n8n service (adapt process_name and user fields to your environment)Elastic

process.parent.name:n8n AND (process.name:(bash OR sh OR powershell OR cmd OR python) OR process.executable:*/bin/*) | stats count by process.name, user.name, host.name

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find all n8n installationsList every server or container running n8n in your organization. Document the installed version for each one. Check both production and non-production environments.
  2. Check the current versionLog into each n8n instance or check deployment configuration to confirm which version is running. The version appears in the user interface under settings or in the application logs.
  3. Identify who can edit workflowsReview n8n user roles and permissions to determine who has permission to create or modify workflows. This includes both direct users and any service accounts or API keys that can modify workflows.
  4. Review recent workflow changesCheck the audit log or workflow history in n8n to see who modified workflows and when over the past 30 days. Look for unexpected or suspicious changes, especially in parameter fields or expressions.
  5. Upgrade to the fixed versionDeploy n8n version 1.123.22, 2.9.3, or 2.10.1 or later according to your deployment method (npm, Docker, or cloud hosting). Follow your standard change management process and test in a non-production environment first if possible.
  6. Restart n8nRestart the n8n service on each affected instance to load the patched version. Confirm that the service starts successfully and that workflows can still execute.
  7. Verify the fixCheck the version displayed in the n8n user interface or logs to confirm it now shows 1.123.22, 2.9.3, 2.10.1 or later. Confirm that all instances are running a patched version.
  8. Review and restrict permissionsIf your n8n allows untrusted users to create workflows, consider limiting workflow creation and editing to trusted users only. Remove any unnecessary workflow editing permissions for service accounts or API integrations.

How to confirm it is fixed: Log into the n8n interface or check the application logs to confirm the version is now 1.123.22, 2.9.3, 2.10.1 or later on all instances.

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.10.1
npm ls n8n

Upgrade n8n-workflow with npmupgrade

npm install n8n-workflow@2.10.1
npm ls n8n-workflow

Check n8n version via command linefor this issue

npm list n8n

Check n8n version inside a running containerfor this issue

docker exec <container_id> npm list n8n

Run 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_IMAGE

Test 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-2026-27577) 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 2.10.1 or later
   - n8n-workflow (npm): must be 2.10.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.

What versions of n8n are vulnerable to this issue?A good answer: Versions 1.123.21 and earlier, 2.0.0 through 2.9.2, and 2.10.0 are affected; versions 1.123.22, 2.9.3, and 2.10.1 or later are safe.
What permissions does an attacker need to exploit this vulnerability?A good answer: An attacker must be an authenticated user with permission to create or modify workflows in n8n; they do not need administrative rights.
What should we do immediately if we find evidence this was exploited?A good answer: Isolate the affected n8n instance from the network, review all workflow modifications and audit logs, check for data theft or lateral movement, and immediately upgrade to a patched version.
Why is it important to restrict who can edit workflows even after upgrading?A good answer: Limiting workflow editing to trusted users reduces the attack surface and prevents future exploitation if new vulnerabilities are discovered in expression evaluation.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## n8n workflow expressions allow authenticated users to run system commands (CVE-2026-27577)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01837 https://securityelites.com/ai-vulnerabilities/cve-2026-27577-n8n-workflow-expressions-allow-authenticated-users-to-run-system/

### Why this matters
An attacker with permission to create or edit workflows in n8n can run commands on the server where n8n is installed. This could lead to data theft, system takeover, or service disruption. The attacker must be authenticated but does not need administrative rights.

### What to do
1. Find all n8n installations
2. Check the current version
3. Identify who can edit workflows
4. Review recent workflow changes
5. Upgrade to the fixed version
6. Restart n8n
7. Verify the fix
8. Review and restrict permissions

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-27577-n8n-workflow-expressions-allow-authenticated-users-to-run-system/

### Done when
- [ ] n8n is at 2.10.1 or later everywhere it is installed
- [ ] n8n-workflow is at 2.10.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log into the n8n interface or check the application logs to confirm the version is now 1.123.22, 2.9.3, 2.10.1 or later on all instances.
- [ ] 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.

Sign in to track this fix

Change history

  • 25 Feb 2026: Made public
  • 2 Dec 2026: Published

Official record

## Impact Additional exploits in the expression evaluation of n8n have been identified and patched following [CVE-2025-68613](https://github.com/n8n-io/n8n/security/advisories/GHSA-v98v-ff95-f3cp). An authenticated user with permission to create or modify workflows could abuse crafted expressions in workflow parameters to trigger unintended system command execution on the host running n8n.## Patches The issues have been fixed in n8n versions 2.10.1, 2.9.3, and 1.123.22. Users should upgrade to one of these versions or later to remediate all known vulnerabilities.## 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 remediate the risk and should only be used as short-term mitigation measures.### Resources - Best practices for [securing n8n](https://docs.n8n.io/hosting/securing/overview/) - Initial vulnerability advisory: [CVE-2025-68613](https://github.com/n8n-io/n8n/security/advisories/GHSA-v98v-ff95-f3cp)

Weakness type: CWE-94

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-27577

For 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.