NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-25049: n8n Has Expression Escape Vulnerability Leading to RCE

criticalCVSS 4.0 9.4GHSA-6cqr-8cfr-67f8

n8n before 1.123.17, and 2.x before 2.5.2, has an expression escape that lets a user who can create or edit workflows run system commands on the n8n host. It follows earlier expression-evaluation fixes. Upgrade to 1.123.17 or 2.5.2.

Published Feb 4, 2026 · Analysis Nov 1, 2026

What an attacker can do

n8n evaluates expressions in workflow parameters. Crafted expressions could escape the expression evaluation and reach unintended command execution on the host. The advisory describes these as additional exploits in the expression evaluation, found after the earlier CVE-2025-68613 fix.

The attacker needs an authenticated account that can create or modify workflows. That is a common permission in teams that share an n8n instance. Commands run with the n8n process's privileges, which on a typical host reach every stored credential for connected services, environment secrets, files and the internal network. CVSS 4.0 scores it 9.4, with network access, low privileges, no user interaction and a changed scope. Many researchers are credited, which reflects how many bypass paths the expression sandbox had. Treat any instance where untrusted users can edit workflows as exposed.

Who is affected

n8n below 1.123.17 on the 1.x line, and 2.0.0 up to but not including 2.5.2. Exposure is greatest on shared instances where several users can create or edit workflows.

n8n --version
npm ls n8n

For Docker, check the image tag you deploy.

n8n

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

n8n

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

How to fix it

Upgrade to 1.123.17 (1.x line) or 2.5.2 (2.x line), or any later release:

npm install -g n8n@latest

If you cannot upgrade yet, the advisory suggests two short-term mitigations. 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. The maintainers say these do not fully remove the risk.

How to tell if you were hit

Review recently created or edited workflows for unusual expressions in parameters, especially ones that reach into objects, constructors or process, and for workflows edited by accounts that do not normally build them. On the host, look for child processes of the n8n process other than normal node work, outbound connections to unfamiliar hosts, and reads of the n8n data folder and its encryption key. Rotate credentials stored in n8n if exploitation is possible.

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 issue has been fixed in n8n versions 1.123.17 and 2.5.2. Users should upgrade to these versions or later to remediate the vulnerability.

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

---

n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backward compatibility.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Credited to fatihhcelik, eilonc-pillar, cristianstaicu, sandeepl337, nickcopi, joshft, yadhukrishnam, doyler, zolbooo, nnfrog.

Questions

Who can exploit CVE-2026-25049?

An authenticated user with permission to create or modify workflows. No admin role is stated as required, and no user interaction is needed.

Is this the same as the earlier expression bug?

It is related. The advisory says these are additional exploits in n8n's expression evaluation, identified and patched following CVE-2025-68613.

Is there a workaround?

Only partial ones: restrict workflow editing to trusted users and harden the host. The maintainers say these do not fully remediate the risk, so upgrade.

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