{
  "id": "CVE-2026-21858",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-21858",
  "published_at": "2026-01-07T23:57:52.079Z",
  "title": "n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling",
  "vendor": "n8n-io",
  "product": "n8n",
  "cvss": {
    "score": 10,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-01-07T19:32:42Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -0.2,
    "repo": "Chocapikk/CVE-2026-21858",
    "source": "github"
  },
  "poc_repo_count": 14,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 10
  },
  "repos": [
    {
      "repo": "Chocapikk/CVE-2026-21858",
      "url": "https://github.com/Chocapikk/CVE-2026-21858",
      "created_at": "2026-01-07T19:32:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 307,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-08-06T09:10:49Z"
    },
    {
      "repo": "xitexploiter96-dot/exploit-21858",
      "url": "https://github.com/xitexploiter96-dot/exploit-21858",
      "created_at": "2026-01-09T05:31:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2025-12-10T10:39:06Z"
    },
    {
      "repo": "cropnet/Ni8mare",
      "url": "https://github.com/cropnet/Ni8mare",
      "created_at": "2026-01-12T14:32:04Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-10-27T09:08:50Z"
    },
    {
      "repo": "galois17/n8n-ni8mare-educational",
      "url": "https://github.com/galois17/n8n-ni8mare-educational",
      "created_at": "2026-01-15T21:14:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2009-11-28T17:53:31Z"
    },
    {
      "repo": "sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit",
      "url": "https://github.com/sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit",
      "created_at": "2026-01-17T04:57:53Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-12-09T21:46:17Z"
    },
    {
      "repo": "sec-dojo-com/CVE-2026-21858",
      "url": "https://github.com/sec-dojo-com/CVE-2026-21858",
      "created_at": "2026-01-20T11:50:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-02-14T15:57:16Z"
    },
    {
      "repo": "sh4den/CVE-2026-21858",
      "url": "https://github.com/sh4den/CVE-2026-21858",
      "created_at": "2026-01-20T15:59:48Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-08-09T11:31:02Z"
    },
    {
      "repo": "bgarz929/Ashwesker-CVE-2026-21858",
      "url": "https://github.com/bgarz929/Ashwesker-CVE-2026-21858",
      "created_at": "2026-01-28T08:17:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-05-21T12:46:43Z"
    },
    {
      "repo": "Alhakim88/CVE-2026-21858",
      "url": "https://github.com/Alhakim88/CVE-2026-21858",
      "created_at": "2026-01-30T22:38:06Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-10-24T15:47:20Z"
    },
    {
      "repo": "EQSTLab/CVE-2026-21858",
      "url": "https://github.com/EQSTLab/CVE-2026-21858",
      "created_at": "2026-02-11T01:01:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-25T15:10:45Z"
    },
    {
      "repo": "0xBlackash/CVE-2026-21858",
      "url": "https://github.com/0xBlackash/CVE-2026-21858",
      "created_at": "2026-02-23T17:27:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "0xredash/CVE-2026-21858",
      "url": "https://github.com/0xredash/CVE-2026-21858",
      "created_at": "2026-02-23T17:27:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "ashrafzaryouh/CVE-2026-21858",
      "url": "https://github.com/ashrafzaryouh/CVE-2026-21858",
      "created_at": "2026-02-23T17:27:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "Yati2/Ni8mare-CVE-2026-21858",
      "url": "https://github.com/Yati2/Ni8mare-CVE-2026-21858",
      "created_at": "2026-03-13T07:13:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2021-07-13T02:58:01Z"
    },
    {
      "repo": "kaleth4/CVE-2026-21858",
      "url": "https://github.com/kaleth4/CVE-2026-21858",
      "created_at": "2026-04-09T11:09:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-06-18T13:44:29Z"
    },
    {
      "repo": "masterwok/PoC-CVE-2026-21858",
      "url": "https://github.com/masterwok/PoC-CVE-2026-21858",
      "created_at": "2026-04-16T19:42:25Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-20T18:28:04Z"
    },
    {
      "repo": "Bannt08/Research-CVE-2026-21858",
      "url": "https://github.com/Bannt08/Research-CVE-2026-21858",
      "created_at": "2026-05-08T07:32:38Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-03-04T10:50:16Z"
    },
    {
      "repo": "RBKD-SEC/POC",
      "url": "https://github.com/RBKD-SEC/POC",
      "created_at": "2026-05-11T09:43:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-02-14T06:55:04Z"
    },
    {
      "repo": "Fomovet/cve-2026-21858",
      "url": "https://github.com/Fomovet/cve-2026-21858",
      "created_at": "2026-06-21T14:31:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-01-11T16:54:41Z"
    },
    {
      "repo": "qianlijaingshan/n8n-cve-2026-21858",
      "url": "https://github.com/qianlijaingshan/n8n-cve-2026-21858",
      "created_at": "2026-07-21T08:56:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-04-17T11:30:28Z"
    },
    {
      "repo": "Giangdurian/CVE-2026-21858-and-CVE-2025-68613",
      "url": "https://github.com/Giangdurian/CVE-2026-21858-and-CVE-2025-68613",
      "created_at": "2026-07-31T14:12:47Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-11-02T12:20:50Z"
    },
    {
      "repo": "yym8538/CVE-2026-21858",
      "url": "https://github.com/yym8538/CVE-2026-21858",
      "created_at": "2026-08-21T04:17:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-09-04T01:29:07Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 1.65.0, \u003c 1.121.0"
        ],
        "fixed_in": [
          "1.121.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade n8n to 1.121.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-v4pr-fm98-w9pg"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-21858.yaml",
      "source": "nuclei",
      "title": "nuclei template: n8n Webhooks - Remote Code Execution",
      "published_at": "2026-01-08T06:15:56Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/signin",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9"
        },
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
        },
        {
          "name": "Accept-Language",
          "value": "en-US,en;q=0.5"
        }
      ],
      "ports": [
        5678
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
      ],
      "protocol": "https",
      "repos": [
        "bgarz929/Ashwesker-CVE-2026-21858",
        "sh4den/CVE-2026-21858"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "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"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rest/settings",
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "Giangdurian/CVE-2026-21858-and-CVE-2025-68613",
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/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\""
      ],
      "content_type": "application/json",
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "Giangdurian/CVE-2026-21858-and-CVE-2025-68613"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/webhook-test/{var}/form-endpoint",
      "body_markers": [
        "\"filepath\":\"/etc/passwd\"",
        "\"mimetype\":\"text/plain\"",
        "\"filename\":\"fake.txt\""
      ],
      "content_type": "application/json",
      "ports": [
        5678
      ],
      "user_agents": [
        "Mozilla/5.0"
      ],
      "protocol": "http",
      "repos": [
        "sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "sastraadiwiguna-purpleeliteteaming/SASTRA-ADI-WIGUNA-CVE-2026-21858-Holistic-Audit/README.md:64"
      ]
    },
    {
      "method": "DELETE",
      "path_template": "/rest/workflows/{var}",
      "headers": [
        {
          "name": "Cookie",
          "value": "n8n-auth={var}"
        }
      ],
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:351"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rest/executions/{var}",
      "headers": [
        {
          "name": "Cookie",
          "value": "n8n-auth={var}"
        }
      ],
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:315"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rest/healthz",
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-audit.sh:59"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rest/users",
      "headers": [
        {
          "name": "Cookie",
          "value": "n8n-auth={var}"
        }
      ],
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:211"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/workflows",
      "headers": [
        {
          "name": "Cookie",
          "value": "n8n-auth={var}"
        }
      ],
      "body_markers": [
        "\"name\"",
        "\"active\"",
        "\"nodes\"",
        "\"connections\"",
        "\"settings\""
      ],
      "content_type": "application/json",
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:273"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/workflows/{var}/run",
      "headers": [
        {
          "name": "Cookie",
          "value": "n8n-auth={var}"
        }
      ],
      "body_markers": [
        "\"workflowData\""
      ],
      "content_type": "application/json",
      "ports": [
        5678
      ],
      "protocol": "http",
      "repos": [
        "qianlijaingshan/n8n-cve-2026-21858"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "qianlijaingshan/n8n-cve-2026-21858/n8n-chain.py:299"
      ]
    }
  ],
  "rules": []
}
