Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-21893: n8n Vulnerable to Command Injection in Community Package Installation

criticalCVSS 4.0 9.4GHSA-7c4h-vh2m-743m

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.

Published Feb 4, 2026

Affected packages

n8n

Ecosystem
npm
Affected
>= 0.187.0, < 1.120.3
Fixed in
1.120.3
Check
npm ls n8n

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to berkdedekarginoglu.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More n8n vulnerabilities

All n8n entries