SecurityContext

CVE-2026-21877: n8n >= 0.123.0 and < 1.121.3 - Remote Code Execution

  • Template: CVE-2026-21877
  • Name: n8n >= 0.123.0 and < 1.121.3 - Remote Code Execution
  • Description: n8n versions >= 0.123.0 and < 1.121.3 contain a critical authenticated remote code execution vulnerability via arbitrary file write. An authenticated user can exploit the Git node to overwrite critical files and execute untrusted code on the n8n server, potentially leading to full system compromise. The vulnerability affects both self-hosted and n8n Cloud instances.
  • Impact: Full system compromise including access to all credentials, API tokens, OAuth secrets, database connections, and workflow automation capabilities. n8n becomes a single point of failure exposing all connected systems.
  • Remediation: Upgrade to n8n v1.121.3 or later. If upgrading is not immediately possible, disable the Git node and limit access for untrusted users.
  • Severity: critical
  • Authors: s4e-io
  • Tags: cve, cve2026, n8n, workflow, rce, authenticated, passive, vuln
  • References: https://github.com/n8n-io/n8n/security/advisories/GHSA-v364-rw7m-3263, https://nvd.nist.gov/vuln/detail/CVE-2026-21877
  • Cves: CVE-2026-21877
  • Verified: yes
  • Max requests: 1
  • Directory: http/cves
  • Path: http/cves/2026/CVE-2026-21877.yaml
  • Digest: 4a0a0047304502203bf4fc28a4b139ab89648c22ff6146d9f160c0033780eddeb6b272a2ee2d1f4302210093d3f5e00af07a7920e200f5604049dd78022a503aff97d3c3f71658313fa330
  • Created at: 2026-01-28T16:48:51Z
  • Updated at: 2026-11-23T02:03:43Z
  • Age in days: 300
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-21877.yaml

Classification

  • Cwe: CWE-434
  • Cvss score: 9.9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.05449
  • Epss percentile: 0.9293
  • Not known: cpe

Metadata

  • Fofa-query: icon_hash="-831756631"
  • Max-request: 1
  • Product: n8n
  • Shodan-query: http.favicon.hash:-831756631
  • Vendor: n8n-io
  • Verified: yes

Products

ProductIndexedUrl
n8n-io:n8nno—

Labels

  • Name: n8n - Remote Code Execution
  • Impact: Authenticated attackers can execute malicious code, potentially leading to full system compromise.
  • Remediation: Upgrade to version 1.121.3 or later.
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated
  • Labels source: projectdiscovery
  • From cve: CVE-2026-21877
  • Not known: vulnerability type

```yaml

id: CVE-2026-21877

info:

name: n8n >= 0.123.0 and < 1.121.3 - Remote Code Execution

author: s4e-io

severity: critical

description: |

n8n versions >= 0.123.0 and < 1.121.3 contain a critical authenticated remote code execution vulnerability via arbitrary file write. An authenticated user can exploit the Git node to overwrite critical files and execute untrusted code on the n8n server, potentially leading to full system compromise. The vulnerability affects both self-hosted and n8n Cloud instances.

impact: |

Full system compromise including access to all credentials, API tokens, OAuth secrets, database connections, and workflow automation capabilities. n8n becomes a single point of failure exposing all connected systems.

remediation: |

Upgrade to n8n v1.121.3 or later. If upgrading is not immediately possible, disable the Git node and limit access for untrusted users.

reference:

- https://github.com/n8n-io/n8n/security/advisories/GHSA-v364-rw7m-3263

- https://nvd.nist.gov/vuln/detail/CVE-2026-21877

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

cvss-score: 9.9

cve-id: CVE-2026-21877

epss-score: 0.05449

epss-percentile: 0.9293

cwe-id: CWE-434

metadata:

verified: true

max-request: 1

vendor: n8n-io

product: n8n

shodan-query: http.favicon.hash:-831756631

fofa-query: icon_hash="-831756631"

tags: cve,cve2026,n8n,workflow,rce,authenticated,passive,vuln

http:

- method: GET

path:

- "{{BaseURL}}/signin"

matchers-condition: and

matchers:

- type: word

part: body

words:

- "<title>n8n.io"

case-insensitive: true

- type: dsl

name: vulnerable

dsl:

- compare_versions(version, '>= 0.123.0', '< 1.121.3')

- type: status

status:

- 200

extractors:

- type: regex

name: base64_content

group: 1

regex:

- '<meta name="n8n:config:sentry" content="([A-Za-z0-9+/=]+)"'

internal: true

- type: dsl

name: version

dsl:

- 'replace_regex(base64_decode(base64_content), ".*n8n@([0-9]+\\.[0-9]+\\.[0-9]+).*", "$1")'

internal: true

- type: dsl

dsl:

- '"n8n Version: " + version'

digest: 4a0a0047304502203bf4fc28a4b139ab89648c22ff6146d9f160c0033780eddeb6b272a2ee2d1f4302210093d3f5e00af07a7920e200f5604049dd78022a503aff97d3c3f71658313fa330:922c64590222798bb761d5b6d8e72950

```