CVE-2026-85168: 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
n8n Git nodeto a version that resolves this vulnerability.Fixed in 1.123.73 - Upgrade
Upgrade
n8n Git nodeto a version that resolves this vulnerability.Fixed in 2.35.4 - Upgrade
Upgrade
n8n Git nodeto a version that resolves this vulnerability.Fixed in 2.36.2
Event History
Frequently Asked Questions
Who is exposed to exploitation?
n8n instances that use the Git node with a repository whose local Git configuration can be supplied or modified by an attacker are exposed. Exploitation occurs when the Git node performs an Add, Commit, Checkout, or Pull operation against that repository.
What must an attacker control to trigger code execution?
The attacker needs to place a command-bearing content-filter or merge-driver configuration key in the repository's local Git configuration and provide a matching attribute pattern. The configured command is then invoked during a relevant ordinary Git operation.
What privileges does the executed command receive?
The command runs as the n8n process user. Its access is therefore limited or expanded according to the permissions assigned to that n8n service account.
Which versions are affected and what should be upgraded?
Versions before 1.123.73, 2.35.4, and 2.36.2 are affected. Upgrade to the applicable fixed version for the version line you are using.
What can be done if upgrading is not immediately possible?
Avoid using the Git node to perform Add, Commit, Checkout, or Pull operations on repositories that are untrusted or can be modified by untrusted parties. Review repository-local Git configuration and attributes for content-filter or merge-driver settings before allowing the node to operate on a repository.