CVE-2026-21877: n8n is vulnerable to Remote Code Execution via Arbitrary File Write

Published Jan 6, 2026
·
Updated

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

Other sources

n8n is an open source workflow automation platform. In versions 0.121.2 and below, an authenticated attacker may be able to execute malicious code using the n8n service. This could result in full compromise and can impact both self-hosted and n8n Cloud instances. This issue is fixed in version 1.121.3. Administrators can reduce exposure by disabling the Git node and limiting access for untrusted users, but upgrading to the latest version is recommended.

MITRE

Affected Software

2 affected componentsFixes available
npm/n8n>=0.123.0<1.121.3
1.121.3
n8n N8n Node.js>=0.123.0<1.121.3

Event History

Jan 6, 2026
Advisory Published
via GitHub·05:48 PM
Data Sourced
via GitHub·05:48 PM
DescriptionSeverityWeaknessAffected Software
Jan 8, 2026
CVE Published
via MITRE·12:39 AM
Data Sourced
via MITRE·12:39 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 15, 58060
Event
via FIRST·02:51 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-21877?

CVE-2026-21877 is considered a critical vulnerability due to its potential for authenticated remote code execution.

2

How do I fix CVE-2026-21877?

To mitigate CVE-2026-21877, upgrade n8n to version 1.121.3 or later.

3

What type of vulnerability is CVE-2026-21877?

CVE-2026-21877 is an authenticated Remote Code Execution (RCE) vulnerability.

4

Who is affected by CVE-2026-21877?

Any instance of n8n running versions between 0.123.0 and 1.121.3 is affected by CVE-2026-21877.

5

What can happen if CVE-2026-21877 is exploited?

Exploitation of CVE-2026-21877 could lead to full compromise of the affected n8n instance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203