{
  "id": "CVE-2026-85168",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-85168",
  "published_at": "2026-09-03T11:22:17.96Z",
  "title": "n8n before 1.123.73 Remote Code Execution via Git Node",
  "vendor": "n8n-io",
  "product": "n8n",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-24T23:56:25Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 51.5,
    "repo": "Boreas37/CVE-2026-85168-PoC",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 8.8
  },
  "repos": [
    {
      "repo": "Boreas37/CVE-2026-85168-PoC",
      "url": "https://github.com/Boreas37/CVE-2026-85168-PoC",
      "created_at": "2026-10-24T23:56:25Z",
      "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": "2024-10-15T11:10:18Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003c 1.123.73"
        ],
        "fixed_in": [
          "1.123.73"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.36.0, \u003c 2.36.2"
        ],
        "fixed_in": [
          "2.36.2"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.0.0-rc.0, \u003c 2.35.4"
        ],
        "fixed_in": [
          "2.35.4"
        ]
      }
    ],
    "upgrade": [
      "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": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-mwp5-2m32-r54h"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/rest/executions/{var}",
      "query_markers": [
        "includeData=true"
      ],
      "headers": [
        {
          "name": "browser-id",
          "value": "cve-2026-85168-poc"
        }
      ],
      "ports": [
        5678,
        20001,
        20003
      ],
      "protocol": "http",
      "repos": [
        "Boreas37/CVE-2026-85168-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Boreas37/CVE-2026-85168-PoC/n8n_poc.py:132-134"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/login",
      "headers": [
        {
          "name": "browser-id",
          "value": "cve-2026-85168-poc"
        }
      ],
      "body_markers": [
        "\"emailOrLdapLoginId\":",
        "\"password\":"
      ],
      "content_type": "application/json",
      "ports": [
        5678,
        20001,
        20003
      ],
      "protocol": "http",
      "repos": [
        "Boreas37/CVE-2026-85168-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Boreas37/CVE-2026-85168-PoC/n8n_poc.py:74-76"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/owner/setup",
      "headers": [
        {
          "name": "browser-id",
          "value": "cve-2026-85168-poc"
        }
      ],
      "body_markers": [
        "\"email\":",
        "\"firstName\":\"PoC\"",
        "\"lastName\":\"Lab\""
      ],
      "content_type": "application/json",
      "ports": [
        5678,
        20001,
        20003
      ],
      "protocol": "http",
      "repos": [
        "Boreas37/CVE-2026-85168-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Boreas37/CVE-2026-85168-PoC/n8n_poc.py:79-83"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/workflows",
      "headers": [
        {
          "name": "browser-id",
          "value": "cve-2026-85168-poc"
        }
      ],
      "body_markers": [
        "\"name\":\"cve-2026-85168-poc\"",
        "\"type\":\"n8n-nodes-base.git\"",
        "\"operation\":\"add\"",
        "\"pathsToAdd\":\"note.txt\"",
        "\"repositoryPath\":"
      ],
      "content_type": "application/json",
      "ports": [
        5678,
        20001,
        20003
      ],
      "protocol": "http",
      "repos": [
        "Boreas37/CVE-2026-85168-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Boreas37/CVE-2026-85168-PoC/n8n_poc.py:120"
      ]
    },
    {
      "method": "POST",
      "path_template": "/rest/workflows/{var}/run",
      "headers": [
        {
          "name": "browser-id",
          "value": "cve-2026-85168-poc"
        }
      ],
      "body_markers": [
        "\"triggerToStartFrom\":",
        "\"name\":\"Start\""
      ],
      "content_type": "application/json",
      "ports": [
        5678,
        20001,
        20003
      ],
      "protocol": "http",
      "repos": [
        "Boreas37/CVE-2026-85168-PoC"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "Boreas37/CVE-2026-85168-PoC/n8n_poc.py:124-128"
      ]
    }
  ],
  "rules": []
}
