N8n-io n8n
n8n is vulnerable to Remote Code Execution via Arbitrary File Write
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.121.3
Fixed in 1.121.3
Mitigation
Upgrade n8n to 1.121.3 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 4.5 days after publication; not in CISA KEV. First PoC: nuclei template: n8n >= 0.123.0 and < 1.121.3 - Remote Code Execution (nuclei template, 12 Jan 2026).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| CVEs-Labs/CVE-2026-21877 | 22 Apr 2026 +105 d | 0 | PoC |
| monkeontheroof/cve-2026-21877-rce | 26 Apr 2026 +109 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: n8n >= 0.123.0 and < 1.121.3 - Remote Code Execution | 12 Jan 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /{var}/renad-secure-gate
- Body markers
"address"inapplication/json- Ports
- 5678
- Seen in
- 1 repo: CVEs-Labs/CVE-2026-21877
- Evidence
- CVEs-Labs/CVE-2026-21877/CVE-2026-21877_exploit.py:19
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*/renad-secure-gate(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21877 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/renad-secure-gate"; http.request_body; content:"|22|address|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-21877; classtype:web-application-attack; sid:9512933; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: n8n-io n8n exploit attempt (CVE-2026-21877)
id: gg-pocmon-cve-2026-21877-9512933
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21877. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21877
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/renad-secure-gate'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21877