AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-27577: n8n: Expression Sandbox Escape Leads to RCE

criticalCVSS 4.0 9.4 · 3.1 9.9GHSA-vpcf-gvg4-6qwr

n8n has more expression sandbox escapes. An authenticated user who can create or edit workflows can write crafted expressions in workflow parameters and run system commands on the n8n host. Fixed in n8n 1.123.22, 2.9.3 and 2.10.1.

Published Feb 25, 2026 · Updated Feb 27, 2026 · Analysis Nov 16, 2026

What an attacker can do

n8n evaluates expressions in workflow parameters inside a sandbox. This advisory covers further ways to escape that sandbox, found after an earlier n8n expression advisory was patched. A crafted expression then runs operating-system commands as the user that runs n8n (CWE-94).

The attacker needs an account that may create or modify workflows. That is a common permission on shared automation servers. No user interaction is needed, and the CVSS scope is changed, since the host and everything it can reach is affected.

On the host, the attacker gets the credentials n8n stores for its integrations, such as API keys and database logins, and access to the network that the server can reach. Because n8n often connects to many internal systems and AI services, one escape can open all of them. Six researchers are credited, and the EPSS score is 0.1073.

Who is affected

n8n below 1.123.22; 2.x from 2.0.0 below 2.9.3; and 2.10.0 (before 2.10.1). Check your version:

npm ls -g n8n
n8n --version

For Docker installs, check the image tag. Every instance where more than fully trusted people can edit workflows is at higher risk.

n8n

Ecosystem
npm
Affected
< 1.123.22
Fixed in
1.123.22
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.9.3
Fixed in
2.9.3
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.10.0, < 2.10.1
Fixed in
2.10.1
Check
npm ls n8n

How to fix it

Upgrade to 1.123.22, 2.9.3 or 2.10.1 (or later), depending on your release line:

npm install -g [email protected]

The advisory gives short-term mitigations that do not fully remove the risk: limit workflow creation and editing to fully trusted users, and run n8n in a hardened environment with restricted operating system privileges and limited network access. After patching, consider rotating credentials stored in n8n if untrusted users had edit rights.

How to tell if you were hit

Review recently created or edited workflows for unusual expressions in parameters, for example ones that reach for constructor, process, require or child-process functions. Look at the n8n host for unexpected child processes spawned by the n8n process, outbound connections from it, and new files in its working directories. Compare workflow edit history against who should have edit rights.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

Additional exploits in the expression evaluation of n8n have been identified and patched following CVE-2025-68613. 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

Credited to eilonc-pillar, nil340, ediklab, hackerman70000, zolbooo, c0rydoras.

Questions

Does CVE-2026-27577 need authentication?

Yes. The attacker needs permission to create or modify workflows. No other interaction is needed.

Which n8n versions fix it?

1.123.22, 2.9.3 and 2.10.1, one per release line. Upgrade to a patched version or later to cover all known issues.

Is it connected to the Form node issue CVE-2026-27493?

Related. That flaw lets an unauthenticated visitor inject expressions, and it needs a sandbox escape such as this one to reach code execution. Both are fixed in the same versions.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries