Critical n8n Vulnerability Allows Authenticated Users to Execute System Commands
High-severity flaw enables remote command execution through workflow automation abuse

Security researchers have identified a critical vulnerability in n8n, the popular workflow automation platform. The flaw carries a CVSS score of 9.9 and allows authenticated users to execute arbitrary system commands on the underlying server.
The issue affects how n8n processes workflow actions. Improper validation enables attackers with valid credentials to inject and execute system-level commands. As a result, attackers can escape application-level restrictions and gain control over the host environment.
Although the attack requires authentication, many n8n deployments grant broad access to internal users or service accounts. Therefore, the vulnerability presents serious risk in shared, cloud, or enterprise environments.
Exploitation Details
An attacker with valid access can abuse workflow execution features to run unauthorized commands. Once executed, these commands operate with the privileges of the n8n service.
Because n8n often integrates with APIs, credentials, and internal systems, exploitation may expose secrets and connected infrastructure. Attackers can also establish persistence or deploy additional payloads.
The vulnerability significantly lowers the effort needed for post-authentication compromise.
Impact
Successful exploitation may allow attackers to:
- Execute arbitrary commands on the server
- Access stored credentials and secrets
- Modify or delete workflows and data
- Pivot into connected systems and services
- Deploy malware or backdoors
In automation-heavy environments, compromise of n8n can quickly escalate into broader infrastructure compromise.
Key Risk
- Very high CVSS score reflects severe impact
- Authenticated access often exists in internal teams
- Workflow engines run with powerful permissions
- Exploitation enables full system-level actions
Recommended Defensive Actions
- Update n8n to the latest patched version immediately
- Restrict access to n8n instances and admin functions
- Review user roles and remove excessive permissions
- Rotate secrets stored in workflows after patching
- Monitor logs for suspicious workflow execution patterns
Organizations should treat this issue as high priority, even if n8n is not internet-facing.