---
id: CVE-2026-85168
title: >-
  n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain a remote code
  execution vulnerability in the Git node
summary: >-
  n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain a remote code
  execution vulnerability in the Git node. The node reset a fixed list of
  command-bearing configuration keys before each operation, but that list did
  not cover the cont…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: n8n
product: n8n
affected:
  - n8n < 1.123.73
  - 'n8n >= 2.0.0, < 2.35.4'
  - 'n8n >= 2.36.0, < 2.36.2'
patched:
  - n8n 2.36.2
published: '2026-09-03'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T21:41:59.993'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85168'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-mwp5-2m32-r54h'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-1.123.73-remote-code-execution-via-git-node
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00459
epssPercentile: 0.3912
ingestedAt: '2026-09-08T21:11:12.290Z'
---

## Overview

n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain a remote code execution vulnerability in the Git node. The node reset a fixed list of command-bearing configuration keys before each operation, but that list did not cover the content-filter and merge-driver key families. A repository with local configuration setting one of those keys together with a matching attribute pattern causes git to execute the configured command during an ordinary Add, Commit, Checkout, or Pull operation. The command runs as the n8n process user.

## Affected

- `n8n < 1.123.73`
- `n8n >= 2.0.0, < 2.35.4`
- `n8n >= 2.36.0, < 2.36.2`

## Remediation

Upgrade past the affected range:

- `n8n 2.36.2`
