{
  "id": "CVE-2026-65598",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-65598",
  "published_at": "2026-07-22T11:21:45.418Z",
  "title": "n8n before 1.123.64 Remote Code Execution via Git Clone",
  "vendor": "n8n-io",
  "product": "n8n",
  "cvss": {
    "score": 8.9,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "n8n before 1.123.64, 2.29.8, and 2.30.1 contains a TOCTOU race condition in the Git node's clone operation that allows authenticated users to bypass path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This lets an attacker plant a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, executing arbitrary JavaScript on the server. Both self-hosted and cloud instances are affected.",
  "cwe": "CWE-367",
  "cpes": [
    "cpe:2.3:a:n8n:n8n:*:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:community:node.js:*:*",
    "cpe:2.3:a:n8n:n8n:2.30.0:*:*:*:enterprise:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003c 1.123.64"
        ],
        "fixed_in": [
          "1.123.64"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.30.0, \u003c 2.30.1"
        ],
        "fixed_in": [
          "2.30.1"
        ]
      },
      {
        "vendor": "n8n-io",
        "product": "n8n",
        "ranges": [
          "\u003e= 2.0.0-rc.0, \u003c 2.29.8"
        ],
        "fixed_in": [
          "2.29.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade n8n to 1.123.64 or later.",
      "Upgrade n8n to 2.30.1 or later.",
      "Upgrade n8n to 2.29.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
