MISFIRE

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

n8n Vulnerable to RCE via Arbitrary File Write

CVE-2026-21877 ยท 2026-01-06 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:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
5.4% chance of exploitation in 30 days

How it works, in short

An authenticated user can make n8n write files that lead to untrusted code running on the server. (Our summary, written by a model. The source text is below.)

Details

Impact

n8n is affected by an authenticated Remote Code Execution (RCE) vulnerability.

Under certain conditions, an authenticated user may be able to cause untrusted code to be executed by the n8n service. This could result in full compromise of the affected instance.

Both self-hosted and n8n Cloud instances are impacted.

Patches

The issue has been resolved in n8n version 1.121.3.

Users are advised to upgrade to this version or later to fully address the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators can reduce exposure by disabling the Git node and limiting access for untrusted users.

References

- n8n documentation: Blocking access to nodes

References

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