n8n Vulnerable to Command Injection in Community Package Installation
CriticalCVE-2026-21893 · Published Feb 4, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| n8n npm | >= 0.187.0, < 1.120.3 | 1.120.3 |
Details and references
### Impact A Command Injection vulnerability was identified in n8n’s community package installation functionality. The issue allowed authenticated users with administrative permissions to execute arbitrary system commands on the n8n host under specific conditions. **Important context** - Exploitation requires _administrative_ access to the n8n instance. - The affected functionality is restricted to trusted users who are already permitted to install third-party community packages. - No unauthenticated or low-privilege exploitation is possible. - There is no evidence of exploitation in the wild. Because administrative users can already extend n8n with custom or community code, the vulnerability does not meaningfully expand the threat model beyond existing administrator capabilities. However, it represents a violation of secure coding practices and has therefore been addressed. ### Patches Users are advised to upgrade to n8n version 1.120.3 or later, which fully resolves the issue. As a general security best practice, n8n instance owners should ensure that: - Administrative access is limited to trusted users only. - Community packages are installed only from trusted sources. - Instances are kept up to date with the latest security releases.
More n8n advisories
All n8n| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Feb 4 | n8n's Unsafe Buffer Allocation Allows In-Process Memory Disclosure in Task Runner CVE-2025-61917High7.7fixed in 1.114.3 | High7.7 | 1.114.3 |
| Feb 4 | n8n Has Expression Escape Vulnerability Leading to RCE CVE-2026-25049Criticalfixed in 1.123.17, 2.5.2 | Critical | 1.123.17, 2.5.2 |
| Feb 4 | n8n's Improper CSP Enforcement in Webhook Responses May Allow Stored XSS CVE-2026-25051Highfixed in 1.122.5, 1.123.2 | High | 1.122.5, 1.123.2 |
| Feb 4 | n8n's Improper File Access Controls Allow Arbitrary File Read by Authenticated Users CVE-2026-25052Criticalfixed in 1.123.18, 2.5.0 | Critical | 1.123.18, 2.5.0 |
| Feb 4 | n8n has OS Command Injection in Git Node CVE-2026-25053Criticalfixed in 1.123.10, 2.5.0 | Critical | 1.123.10, 2.5.0 |
| Feb 4 | n8n Has Stored Cross-site Scripting via Markdown Rendering in Workflow UI CVE-2026-25054Highfixed in 1.123.9, 2.2.1 | High | 1.123.9, 2.2.1 |