{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "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:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.123.64"
              },
              {
                "introduced": "2.0.0"
              },
              {
                "fixed": "2.29.8"
              },
              {
                "introduced": "2.30.0"
              },
              {
                "last_affected": "2.30.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "25d74f918253845e2ad25eb824238b49d0d8a30c"
            },
            {
              "introduced": "a8ecda44f7627630bc8b78cf671405157ad41c4f"
            },
            {
              "fixed": "7786117e976664b67288f13d6cfcd1fcf1b1289b"
            },
            {
              "introduced": "f96d6dbd8442a0db3a90b7c8376b75994b26ed5d"
            },
            {
              "last_affected": "f96d6dbd8442a0db3a90b7c8376b75994b26ed5d"
            }
          ],
          "repo": "https://github.com/n8n-io/n8n",
          "type": "GIT"
        }
      ],
      "versions": [
        "2.30.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-g3r5-9h93-4j2c"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-367"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65598.json"
  },
  "details": "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.",
  "id": "CVE-2026-65598",
  "modified": "2026-07-29T03:30:15.729469278Z",
  "published": "2026-07-22T11:21:45.418Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65598.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65598"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "n8n before 1.123.64 Remote Code Execution via Git Clone"
}