N8n-io n8n
n8n before 1.123.73 Remote Code Execution via Git Node
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.123.73
Fixed in 1.123.73
- >= 2.36.0, < 2.36.2
Fixed in 2.36.2
- >= 2.0.0-rc.0, < 2.35.4
Fixed in 2.35.4
Mitigation
Upgrade n8n to 1.123.73 or later.
Upgrade n8n to 2.36.2 or later.
Upgrade n8n to 2.35.4 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
Timeline
Days relative to CVE publicationFirst public PoC 52 days after publication; not in CISA KEV. First PoC: Boreas37/CVE-2026-85168-PoC (created 24 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Boreas37/CVE-2026-85168-PoC | 24 Oct 2026 +52 d | 14 Nov 2026 | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /rest/executions/{var}
- Query
includeData=true- Key headers
browser-id: cve-2026-85168-poc- Ports
- 5678, 20001, 20003
- Seen in
- 1 repo: Boreas37/CVE-2026-85168-PoC
- Evidence
- Boreas37/CVE-2026-85168-PoC/n8n_poc.py:132-134
POST /rest/login
- Key headers
browser-id: cve-2026-85168-poc- Body markers
"emailOrLdapLoginId":"password":inapplication/json- Ports
- 5678, 20001, 20003
- Seen in
- 1 repo: Boreas37/CVE-2026-85168-PoC
- Evidence
- Boreas37/CVE-2026-85168-PoC/n8n_poc.py:74-76
POST /rest/owner/setup
- Key headers
browser-id: cve-2026-85168-poc- Body markers
"email":"firstName":"PoC""lastName":"Lab"inapplication/json- Ports
- 5678, 20001, 20003
- Seen in
- 1 repo: Boreas37/CVE-2026-85168-PoC
- Evidence
- Boreas37/CVE-2026-85168-PoC/n8n_poc.py:79-83
POST /rest/workflows
- Key headers
browser-id: cve-2026-85168-poc- Body markers
"name":"cve-2026-85168-poc""type":"n8n-nodes-base.git""operation":"add""pathsToAdd":"note.txt""repositoryPath":inapplication/json- Ports
- 5678, 20001, 20003
- Seen in
- 1 repo: Boreas37/CVE-2026-85168-PoC
- Evidence
- Boreas37/CVE-2026-85168-PoC/n8n_poc.py:120
POST /rest/workflows/{var}/run
- Key headers
browser-id: cve-2026-85168-poc- Body markers
"triggerToStartFrom":"name":"Start"inapplication/json- Ports
- 5678, 20001, 20003
- Seen in
- 1 repo: Boreas37/CVE-2026-85168-PoC
- Evidence
- Boreas37/CVE-2026-85168-PoC/n8n_poc.py:124-128
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/rest/executions/[^/?#]*\?(?:.*&)?includeData=true
(?i)^/rest/login(?:[?#].*)?$
(?i)^/rest/owner/setup(?:[?#].*)?$
(?i)^/rest/workflows(?:[?#].*)?$
(?i)^/rest/workflows/[^/?#]*/run(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5678,20001,20003] (msg:"GG PoC-Monitor CVE-2026-85168 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/rest/executions/"; http.uri; content:"includeData=true"; http.header; content:"browser-id: cve-2026-85168-poc"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-85168; classtype:web-application-attack; sid:9023298; rev:1;)
alert http any any -> $HOME_NET [5678,20001,20003] (msg:"GG PoC-Monitor CVE-2026-85168 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/login"; http.header; content:"browser-id: cve-2026-85168-poc"; nocase; http.request_body; content:"|22|emailOrLdapLoginId|22|:"; http.request_body; content:"|22|password|22|:"; reference:url,poc.griffinguard.io/cve/CVE-2026-85168; classtype:web-application-attack; sid:9736820; rev:1;)
alert http any any -> $HOME_NET [5678,20001,20003] (msg:"GG PoC-Monitor CVE-2026-85168 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/owner/setup"; http.header; content:"browser-id: cve-2026-85168-poc"; nocase; http.request_body; content:"|22|email|22|:"; http.request_body; content:"|22|firstName|22|:|22|PoC|22|"; http.request_body; content:"|22|lastName|22|:|22|Lab|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-85168; classtype:web-application-attack; sid:9530272; rev:1;)
alert http any any -> $HOME_NET [5678,20001,20003] (msg:"GG PoC-Monitor CVE-2026-85168 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/workflows"; http.header; content:"browser-id: cve-2026-85168-poc"; nocase; http.request_body; content:"|22|name|22|:|22|cve-2026-85168-poc|22|"; http.request_body; content:"|22|type|22|:|22|n8n-nodes-base.git|22|"; http.request_body; content:"|22|operation|22|:|22|add|22|"; http.request_body; content:"|22|pathsToAdd|22|:|22|note.txt|22|"; http.request_body; content:"|22|repositoryPath|22|:"; reference:url,poc.griffinguard.io/cve/CVE-2026-85168; classtype:web-application-attack; sid:9320015; rev:1;)
alert http any any -> $HOME_NET [5678,20001,20003] (msg:"GG PoC-Monitor CVE-2026-85168 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/workflows/"; http.uri; content:"/run"; http.header; content:"browser-id: cve-2026-85168-poc"; nocase; http.request_body; content:"|22|triggerToStartFrom|22|:"; http.request_body; content:"|22|name|22|:|22|Start|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-85168; classtype:web-application-attack; sid:9672199; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: n8n-io n8n exploit attempt (CVE-2026-85168)
id: gg-pocmon-cve-2026-85168-9023298
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85168. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85168
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/rest/executions/'
cs-uri-query|contains|all:
- 'includeData=true'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85168
title: n8n-io n8n exploit attempt (CVE-2026-85168)
id: gg-pocmon-cve-2026-85168-9736820
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85168. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85168
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85168
title: n8n-io n8n exploit attempt (CVE-2026-85168)
id: gg-pocmon-cve-2026-85168-9530272
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85168. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85168
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/owner/setup'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85168
title: n8n-io n8n exploit attempt (CVE-2026-85168)
id: gg-pocmon-cve-2026-85168-9320015
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85168. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85168
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/workflows'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85168
title: n8n-io n8n exploit attempt (CVE-2026-85168)
id: gg-pocmon-cve-2026-85168-9672199
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85168. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85168
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/workflows/'
- '/run'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85168