N8n-io n8n
n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling
n8n is an open source workflow automation platform. Versions starting with 1.65.0 and below 1.121.0 enable an attacker to access files on the underlying server through execution of certain form-based workflows. A vulnerable workflow could grant access to an unauthenticated remote attacker, resulting in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage. This issue is fixed in version 1.121.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.65.0, < 1.121.0
Fixed in 1.121.0
Mitigation
Upgrade n8n to 1.121.0 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
Timeline
Days relative to CVE publicationFirst public PoC 4 h before publication; not in CISA KEV. First PoC: Chocapikk/CVE-2026-21858 (created 7 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.14 PoCs · 5 informational · 3 suspicious or fake
PoCs 14
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Chocapikk/CVE-2026-21858 | 7 Jan 2026 −4 h | 307 | PoC |
| xitexploiter96-dot/exploit-21858 | 9 Jan 2026 +1.2 d | 1 | PoC via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| galois17/n8n-ni8mare-educational | 15 Jan 2026 +7.9 d | 0 | PoC |
| sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit | 17 Jan 2026 +9.2 d | 0 | PoC |
| sec-dojo-com/CVE-2026-21858 | 20 Jan 2026 +12 d | 1 | PoC |
| sh4den/CVE-2026-21858 | 20 Jan 2026 +13 d | 3 | PoC |
| bgarz929/Ashwesker-CVE-2026-21858 | 28 Jan 2026 +20 d | 0 | Scanner |
| Alhakim88/CVE-2026-21858 | 30 Jan 2026 +23 d | 0 | PoC |
| Yati2/Ni8mare-CVE-2026-21858 | 13 Mar 2026 +64 d | 0 | PoC via PoC Index |
| kaleth4/CVE-2026-21858 | 9 Apr 2026 +91 d | 0 | PoC |
| masterwok/PoC-CVE-2026-21858 | 16 Apr 2026 +99 d | 0 | PoC |
| Fomovet/cve-2026-21858 | 21 Jun 2026 +165 d | 1 | PoC |
| qianlijaingshan/n8n-cve-2026-21858 | 21 Jul 2026 +194 d | 0 | PoC |
| Giangdurian/CVE-2026-21858-and-CVE-2025-68613 | 31 Jul 2026 +205 d | 0 | PoC |
Informational 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| cropnet/Ni8mare | 12 Jan 2026 +4.6 d | 2 | Informational · detection |
| 0xBlackash/CVE-2026-21858 | 23 Feb 2026 +47 d | 1 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 0xredash/CVE-2026-21858 | 23 Feb 2026 +47 d | 1 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| ashrafzaryouh/CVE-2026-21858 | 23 Feb 2026 +47 d | 1 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Bannt08/Research-CVE-2026-21858 | 8 May 2026 +120 d | 0 | Informational · write-up |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2026-21858 | 11 Feb 2026 +34 d | 1 | Fake |
| RBKD-SEC/POC | 11 May 2026 +123 d | 0 | Fake |
| yym8538/CVE-2026-21858 | 21 Aug 2026 +225 d | 1 | Fake |
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 Webhooks - Remote Code Execution | 8 Jan 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 14 PoC reposGET /signin
- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8Accept-Language: en-US,en;q=0.5- Ports
- 5678
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36- Seen in
- 2 repos: bgarz929/Ashwesker-CVE-2026-21858, sh4den/CVE-2026-21858
- Evidence
- bgarz929/Ashwesker-CVE-2026-21858/CVE-2026-21858.yaml:25 sh4den/CVE-2026-21858/README.md:237 sh4den/CVE-2026-21858/main.py:87
GET /rest/settings
- Ports
- 5678
- Seen in
- 2 repos: Giangdurian/CVE-2026-21858-and-CVE-2025-68613, qianlijaingshan/n8n-cve-2026-21858
- Evidence
- Giangdurian/CVE-2026-21858-and-CVE-2025-68613/ni8mare_exploit.py:306 Giangdurian/CVE-2026-21858-and-CVE-2025-68613/ni8mare_exploit_2.py:341 qianlijaingshan/n8n-cve-2026-21858/n8n-audit.sh:31 qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:72
POST /form/vulnerable-form
- Body markers
"data""files""f-test01""filepath":"/etc/hostname""originalFilename":"test.bin""mimetype":"application/octet-stream""size""filepath":"/etc/passwd""f-test02""filepath":"/proc/self/environ""f-test03""filepath":"/root/.n8n/config""f-test04""filepath":"/root/.n8n/database.sqlite"inapplication/json- Ports
- 5678
- Seen in
- 1 repo: Giangdurian/CVE-2026-21858-and-CVE-2025-68613
- Evidence
- Giangdurian/CVE-2026-21858-and-CVE-2025-68613/REPORT.md:583 Giangdurian/CVE-2026-21858-and-CVE-2025-68613/REPORT.md:607 Giangdurian/CVE-2026-21858-and-CVE-2025-68613/REPORT.md:623 Giangdurian/CVE-2026-21858-and-CVE-2025-68613/REPORT.md:637 Giangdurian/CVE-2026-21858-and-CVE-2025-68613/REPORT.md:659
POST /webhook-test/{var}/form-endpoint
- Body markers
"filepath":"/etc/passwd""mimetype":"text/plain""filename":"fake.txt"inapplication/json- Ports
- 5678
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit
- Evidence
- sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit/README.md:64
DELETE /rest/workflows/{var}
- Key headers
Cookie: n8n-auth={var}- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:351
GET /rest/executions/{var}
- Key headers
Cookie: n8n-auth={var}- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:315
GET /rest/healthz
- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-audit.sh:59
GET /rest/users
- Key headers
Cookie: n8n-auth={var}- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:211
POST /rest/workflows
- Key headers
Cookie: n8n-auth={var}- Body markers
"name""active""nodes""connections""settings"inapplication/json- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:273
POST /rest/workflows/{var}/run
- Key headers
Cookie: n8n-auth={var}- Body markers
"workflowData"inapplication/json- Ports
- 5678
- Seen in
- 1 repo: qianlijaingshan/n8n-cve-2026-21858
- Evidence
- qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:299
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/signin(?:[?#].*)?$
(?i)^/rest/settings(?:[?#].*)?$
(?i)^/form/vulnerable-form(?:[?#].*)?$
(?i)^/webhook-test/[^/?#]*/form-endpoint(?:[?#].*)?$
(?i)^/rest/workflows/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21858 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/signin"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9"; nocase; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/webp,*/*|3b|q=0.8"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-21858; classtype:web-application-attack; sid:9376924; rev:1;)
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21858 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/rest/settings"; reference:url,poc.griffinguard.io/cve/CVE-2026-21858; classtype:web-application-attack; sid:9077288; rev:1;)
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21858 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/form/vulnerable-form"; http.request_body; content:"|22|data|22|"; http.request_body; content:"|22|files|22|"; http.request_body; content:"|22|f-test01|22|"; http.request_body; content:"|22|filepath|22|:|22|/etc/hostname|22|"; http.request_body; content:"|22|originalFilename|22|:|22|test.bin|22|"; http.request_body; content:"|22|mimetype|22|:|22|application/octet-stream|22|"; http.request_body; content:"|22|size|22|"; http.request_body; content:"|22|filepath|22|:|22|/etc/passwd|22|"; http.request_body; content:"|22|f-test02|22|"; http.request_body; content:"|22|filepath|22|:|22|/proc/self/environ|22|"; http.request_body; content:"|22|f-test03|22|"; http.request_body; content:"|22|filepath|22|:|22|/root/.n8n/config|22|"; http.request_body; content:"|22|f-test04|22|"; http.request_body; content:"|22|filepath|22|:|22|/root/.n8n/database.sqlite|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-21858; classtype:web-application-attack; sid:9274802; rev:1;)
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21858 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/webhook-test/"; http.uri; content:"/form-endpoint"; http.request_body; content:"|22|filepath|22|:|22|/etc/passwd|22|"; http.request_body; content:"|22|mimetype|22|:|22|text/plain|22|"; http.request_body; content:"|22|filename|22|:|22|fake.txt|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-21858; classtype:web-application-attack; sid:9673043; rev:1;)
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-21858 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/rest/workflows/"; http.header; content:"Cookie: n8n-auth="; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-21858; classtype:web-application-attack; sid:9325790; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: n8n-io n8n exploit attempt (CVE-2026-21858)
id: gg-pocmon-cve-2026-21858-9376924
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21858. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21858
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/signin'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21858
title: n8n-io n8n exploit attempt (CVE-2026-21858)
id: gg-pocmon-cve-2026-21858-9077288
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21858. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21858
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/rest/settings'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21858
title: n8n-io n8n exploit attempt (CVE-2026-21858)
id: gg-pocmon-cve-2026-21858-9274802
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21858. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21858
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/form/vulnerable-form'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21858
title: n8n-io n8n exploit attempt (CVE-2026-21858)
id: gg-pocmon-cve-2026-21858-9673043
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21858. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21858
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/webhook-test/'
- '/form-endpoint'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21858
title: n8n-io n8n exploit attempt (CVE-2026-21858)
id: gg-pocmon-cve-2026-21858-9325790
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21858. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21858
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/rest/workflows/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21858