MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2026-21893

n8n Vulnerable to Command Injection in Community Package Installation

CVE-2026-21893 · 2026-02-04 critical

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Code and command execution
Affected
n8n (npm)
CVSS
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
EPSS
1.5% chance of exploitation in 30 days

How it works, in short

An administrator can inject shell metacharacters into the community package installation flow, so the n8n host runs attacker-chosen commands. (Our summary, written by a model. The source text is below.)

Details

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

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.