CVE-2026-21893 — n8n Vulnerable to Command Injection in n8n
n8n Vulnerable to Command Injection in Community Package Installation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.00%). Schedule for your next planned update.
Does your project use an affected n8n version?
Paste your package-lock.json to check it for CVE-2026-21893 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published February 4, 2026 (295 days ago).
- Last revised February 4, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install n8n@1.120.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| n8n npm · Affected: All versions | 1.120.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
References
Frequently Asked Questions
- What is CVE-2026-21893?
- n8n Vulnerable to Command Injection in Community Package Installation. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-21893?
- CVE-2026-21893 affects n8n. It has a 2.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-21893 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 81.3% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-44790CRITICAL
n8n Has an Arbitrary File Read via Git Node
- CVE-2025-61914HIGH
n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox
- CVE-2026-65592HIGH
n8n: Stored DOM XSS via Resource Locator `cachedResultUrl`
- CVE-2026-65593MEDIUM
n8n: Authenticated SSRF via Dynamic Node Parameters Endpoints Allows Internal Network Access
- CVE-2026-59257MEDIUM
n8n: MySQL v1 Node executeQuery Operation Allows SQL Injection via Unparameterized Expression Interpolation
- CVE-2026-72769MEDIUM
n8n: Prototype Pollution via VM Expression Engine Sandbox Escape Leads to Denial of Service
- CVE-2026-86074MEDIUM
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
- CVE-2026-65594MEDIUM
n8n: Member-Level Users Can Execute Other Users' MCP Server Trigger Workflows via Missing OAuth Authorization Check