INCIDENT MAP

Browse / Tool and Agent Misuse / CVE-2025-71380

n8n: Execute Command Node Allows Authenticated Users to Run Arbitrary Commands on Host

CVE-2025-71380 · 2025-10-09 high

Class
Tool and Agent Misuse (filed by a model that read the advisory)
Technique
Code and command execution
Affected
n8n-nodes-base, n8n (npm)
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

Any user who can build workflows can run arbitrary shell commands on the host through the Execute Command node when it is enabled. (Our summary, written by a model. The source text is below.)

Details

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:

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

References

Source: GitHub Advisory Database, used under CC BY 4.0.