{"id":"GHSA-365g-vjw2-grx8","summary":"n8n: Execute Command Node Allows Authenticated Users to Run Arbitrary Commands on Host","details":"### Impact\n\nThe `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.\n\nAn 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.\n\nThis vulnerability affects all n8n deployments where:\n\n- The `Execute Command` node is enabled, and\n- Not all user accounts are strictly controlled and trusted.\n\nn8n.cloud is **not** impacted.\n\n\n### Patches\nNo 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.\n\nFuture n8n versions may change the default availability of this node.\n\n### Workarounds\nAdministrators can disable the `Execute Command` node by setting the following environment variable before starting n8n:\n\n```bash\nexport NODES_EXCLUDE: \"[\\\"n8n-nodes-base.executeCommand\\\"]\"\n```\n\n### References\nn8n docs: [Execute Command](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executecommand/)\nn8n docs: [Blocking nodes](https://docs.n8n.io/hosting/securing/blocking-nodes/)","aliases":["CVE-2025-71380"],"modified":"2026-07-08T07:35:34.716078937Z","published":"2025-10-09T15:26:59Z","database_specific":{"cwe_ids":["CWE-78"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-10-09T15:26:59Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-365g-vjw2-grx8"},{"type":"PACKAGE","url":"https://github.com/n8n-io/n8n"}],"affected":[{"package":{"name":"n8n-nodes-base","ecosystem":"npm","purl":"pkg:npm/n8n-nodes-base"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.113.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-365g-vjw2-grx8/GHSA-365g-vjw2-grx8.json"}},{"package":{"name":"n8n","ecosystem":"npm","purl":"pkg:npm/n8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.114.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-365g-vjw2-grx8/GHSA-365g-vjw2-grx8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}