CVE-2026-21877CWE-434CWE-94

n8n is vulnerable to Remote Code Execution via Arbitrary File Write

Critical · published January 8, 2026

CVSS v3.1
10.0
EPSS
5%
Percentile
92.7
In the wild
Unconfirmed
What it is

🔥 An authenticated attacker could execute malicious code in n8n, potentially compromising your entire workflow automation setup! Think of it like a crafty temp worker getting access to your office files — once they're in, they can make any changes they want without raising any alarms. This vulnerability could lead to a total takeover of your n8n instance, whether it's self-hosted or on n8n Cloud. Imagine an intruder not just snooping around, but actively altering your workflows and automating their own malicious tasks. The potential fallout is absolutely devastating!

Put simply

Think of it like a crafty temp worker getting access to your office files — once they're in, they can make any changes they want without raising any alarms. In versions 0.121.2 and below, an unauthorized user with authentication can exploit the n8n service to run arbitrary code, jeopardizing the integrity of your workflows.

What to do

This vulnerability could lead to a total takeover of your n8n instance, whether it's self-hosted or on n8n Cloud. Imagine an intruder not just snooping around, but actively altering your workflows and automating their own malicious tasks. The potential fallout is absolutely devastating! Upgrade to version 1.121.3 or higher immediately! To further mitigate risks, consider disabling the Git node and restricting access for untrusted users until you've patched. Don't leave your workflows vulnerable! You've got this! Follow these steps and you'll shore up your defenses in no time. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05449 · 92.7th percentile
Weaknesses
CWE-434 · Unrestricted Upload of File with Dangerous Type; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-08T00:39Z
EPSS history
Timeline
  • 08 JAN 00:39Z
    n8n is vulnerable to Remote Code Execution via Arbitrary File Write
    cvelistv5