Advisory

GHSA-v364-rw7m-3263

Also known as: CVE-2026-21877

Summary

n8n Vulnerable to RCE via Arbitrary File Write

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-01-06 17:48 UTC
Modified
2026-02-03 03:16 UTC

Affected packages and fixes

n8n

npm · All systems

Affected

  • introduced 0.123.0, fixed 1.121.3 (semver)

Fixed versions

1.121.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences