PoC Monitor
← All CVEs
CVE-2026-21858published 7 Jan 2026 23:57 UTCData: JSON · API

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.

First public PoC 4 h beforebefore publication · 7 Jan 2026
Public PoCs1514 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS10.0critical · scored by CNA · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

n8n-io n8n
  • >= 1.65.0, < 1.121.0

Fixed in 1.121.0

Mitigation

Upgrade n8n to 1.121.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8First public PoC7 Jan 2026 · t−4hCVE published7 Jan 2026 · t = 0

First 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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 30 days before the repo

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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 30 days before the repo

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
  • owner account created less than 30 days before the repo

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
  • owner account created less than 30 days before the repo

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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: n8n Webhooks - Remote Code Execution8 Jan 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 14 PoC repos

GET /signin

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-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

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" in application/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" in application/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/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" in application/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" in application/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.

GET /signin
(?i)^/signin(?:[?#].*)?$
GET /rest/settings
(?i)^/rest/settings(?:[?#].*)?$
POST /form/vulnerable-form
(?i)^/form/vulnerable-form(?:[?#].*)?$
POST /webhook-test/{var}/form-endpoint
(?i)^/webhook-test/[^/?#]*/form-endpoint(?:[?#].*)?$
DELETE /rest/workflows/{var}
(?i)^/rest/workflows/[^/?#]*(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /signin
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;)
GET /rest/settings
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;)
POST /form/vulnerable-form
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;)
POST /webhook-test/{var}/form-endpoint
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;)
DELETE /rest/workflows/{var}
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.

GET /signin
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
GET /rest/settings
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
POST /form/vulnerable-form
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
POST /webhook-test/{var}/form-endpoint
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
DELETE /rest/workflows/{var}
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