CVE-2026-21893: n8n Vulnerable to Command Injection in Community Package Installation
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.
Other sources
n8n is an open source workflow automation platform. From version 0.187.0 to before 1.120.3, 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. This issue has been patched in version 1.120.3.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-21893?
CVE-2026-21893 is classified as a high-severity vulnerability due to its potential for arbitrary command execution.
What impact does CVE-2026-21893 have on affected systems?
CVE-2026-21893 allows authenticated users with administrative permissions to execute arbitrary system commands on the affected n8n instance.
How do I fix CVE-2026-21893?
To remediate CVE-2026-21893, upgrade to n8n version 1.120.3 or later.
Who is affected by CVE-2026-21893?
CVE-2026-21893 affects instances of n8n running versions between 0.187.0 and 1.120.3.
Can I still use n8n if I’m on a vulnerable version due to CVE-2026-21893?
If you are on a vulnerable version, it is recommended to avoid using community package installation features until you have upgraded to a secure version.