n8n: Execute Command Node Allows Authenticated Users to Run Arbitrary Commands on Host
High8.8CVE-2025-71380 · Published Oct 9, 2025 · updated Jul 8, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| n8n npm | <= 1.114.4 | No fix yet |
Details and references
### 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: ```bash export NODES_EXCLUDE: "[\"n8n-nodes-base.executeCommand\"]" ``` ### References n8n docs: [Execute Command](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executecommand/) n8n docs: [Blocking nodes](https://docs.n8n.io/hosting/securing/blocking-nodes/)
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-78
- Also known as
- CVE-2025-71380
More n8n advisories
All n8n| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Oct 302025 | n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook CVE-2025-62726High8.8fixed in 1.113.0 | High8.8 | 1.113.0 |
| Sep 152025 | Stored XSS in n8n LangChain Chat Trigger Node via initialMessages Parameter CVE-2025-58177Medium4.1fixed in 1.107.0 | Medium4.1 | 1.107.0 |
| Aug 202025 | n8n symlink traversal vulnerability in "Read/Write File" node allows access to restricted files CVE-2025-57749Medium6.5fixed in 1.106.0 | Medium6.5 | 1.106.0 |
| Aug 192025 | Stored XSS in n8n Form Trigger allows Account Takeover via injected iframe and video/source CVE-2025-52478High8.7fixed in 1.98.2 | High8.7 | 1.98.2 |
| Dec 82025 | n8n vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook CVE-2025-65964Criticalfixed in 1.119.2 | Critical | 1.119.2 |
| Dec 222025 | n8n Vulnerable to Remote Code Execution via Expression Injection CVE-2025-68613Critical9.9fixed in 1.120.4, 1.121.1 | Critical9.9 | 1.120.4, 1.121.1 |