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

GHSA-365g-vjw2-grx8: n8n: Execute Command Node Allows Authenticated Users to Run Arbitrary Commands on Host

highCVSS 3.1 8.8

n8n's Execute Command node runs arbitrary shell commands on the host. On self-hosted instances where it is enabled and not every user is trusted, any user who can edit workflows gets code execution. There is no patch: n8n changed no code, and the fix is to block the node with NODES_EXCLUDE. n8n.cloud is not affected.

Published Oct 9, 2025 · Analysis Nov 1, 2026

What an attacker can do

The Execute Command node (n8n-nodes-base.executeCommand) is built to run commands on the machine where n8n runs. This advisory covers the risk of that design when access to the instance is wider than the people who should have shell access. A malicious user, or someone who took over a normal account, can add the node to a workflow and run any command as the n8n process.

The attacker needs an n8n account that can create or edit workflows, and an instance where the node is available. Commands run with the privileges of the n8n service. That exposes credentials stored in n8n and in the environment, files on the host and the network reachable from it. The advisory lists data exfiltration, service disruption and full system compromise. The CVSS 3.1 vector is network, low privileges, no interaction, and high confidentiality, integrity and availability impact.

The deployment must have the node enabled and user accounts that are not strictly controlled. Hosted n8n.cloud is not impacted. The vendor did not alter the node's behavior; it says future versions may change the default availability.

Who is affected

Self-hosted n8n where Execute Command is enabled and some users with access are not fully trusted. The listed ranges are n8n-nodes-base up to 1.113.0 and n8n up to 1.114.4, with no patched version. The n8n docs now say the node is blocked by default and must be removed from the exclude list to enable it, but they do not give the version that introduced this.

npm ls n8n n8n-nodes-base

Then check whether NODES_EXCLUDE is set in your environment, and whether any workflow uses the Execute Command node.

n8n-nodes-base

Ecosystem
npm
Affected
<= 1.113.0
Fixed in
No patched version yet
Check
npm ls n8n-nodes-base

n8n

Ecosystem
npm
Affected
<= 1.114.4
Fixed in
No patched version yet
Check
npm ls n8n

How to fix it

There is no patched version. The vendor says no code was changed and recommends disabling the node wherever it is not required. Set NODES_EXCLUDE before starting n8n:

export NODES_EXCLUDE="[\"n8n-nodes-base.executeCommand\"]"

The n8n docs say NODES_EXCLUDE stops n8n from loading the node at all, and that setting it to [] enables all nodes, so do not do that on a shared instance. The docs also describe node type policies for per-project blocking without a restart. If you must keep the node, limit workflow editing to people who are already trusted with shell access on the host, and run n8n as an unprivileged user in a container.

How to tell if you were hit

List workflows that contain n8n-nodes-base.executeCommand, for example by searching the exported workflow JSON or the workflow table in the n8n database. Check workflow history and audit data for recent additions of the node by unexpected users. On the host, look at child processes spawned by the n8n process, such as shells, curl, wget or package managers, and at outbound connections from the n8n container. Check the value of NODES_EXCLUDE in the environment.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The Execute Command node in n8n allows execution of arbitrary commands on the host system where n8n runs. While this functionality is intended for advanced automation and can be useful in certain workflows, it poses a security risk if all users with access to the n8n instance are not fully trusted.

An attacker—either a malicious user or someone who has compromised a legitimate user account—could exploit this node to run arbitrary commands on the host machine, potentially leading to data exfiltration, service disruption, or full system compromise.

This vulnerability affects all n8n deployments where:

  • The Execute Command node is enabled, and
  • Not all user accounts are strictly controlled and trusted.

n8n.cloud is not impacted.

Patches

No code changes have been made to alter the behavior of the Execute Command node. The recommended mitigation is to disable the node by default in environments where it is not explicitly required.

Future n8n versions may change the default availability of this node.

Workarounds

Administrators can disable the Execute Command node by setting the following environment variable before starting n8n:

export NODES_EXCLUDE: "[\"n8n-nodes-base.executeCommand\"]"

References

n8n docs: Execute Command n8n docs: Blocking nodes

Questions

Is n8n Cloud affected?

No. The advisory states n8n.cloud is not impacted. It covers self-hosted deployments where the Execute Command node is enabled.

Is there a patch for this GHSA-365g-vjw2-grx8?

No. The vendor changed no code. The recommended mitigation is to disable the node with NODES_EXCLUDE, and future versions may change the default availability.

Is this a bug in the node?

It is mainly a risk of intended behavior. The node is meant to run commands, so the problem arises when users who should not have host access can use it.

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