{"id":"CVE-2026-65598","aliases":["EUVD-2026-47642","GHSA-725q-c4vp-q4cg","GHSA-g3r5-9h93-4j2c","ROOT-APP-NPM-CVE-2026-65598"],"status":"published","title":"n8n before 1.123.64 Remote Code Execution via Git Clone","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.","severity":{"version":"4.0","score":8.9,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00335,"percentile":0.27272,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-367"],"published":"2026-07-22T11:21:45Z","modified":"2026-10-31T02:30:41Z","fixes":[{"ecosystem":"npm","package":"n8n","fixed_in":["1.123.64","2.30.1","2.29.8"],"sources":["ghsa"]},{"ecosystem":"Root:npm","package":"n8n","fixed_in":["2.19.3-aikido.7","2.19.3-aikido.8","2.19.3-aikido.9","2.19.3-aikido.10","2.19.3-aikido.11","2.19.3-aikido.12","2.19.3-aikido.13","2.19.3-aikido.14","2.19.3-aikido.15"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/n8n","fixed_in":["2.19.3-root.io.7","2.19.3-root.io.8","2.19.3-root.io.9","2.19.3-root.io.10","2.19.3-root.io.11","2.19.3-root.io.12","2.19.3-root.io.13","2.19.3-root.io.14","2.19.3-root.io.15"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"n8n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.123.64"}]}]},{"source":"ghsa","ecosystem":"npm","package":"n8n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.30.0"},{"fixed":"2.30.1"}]}]},{"source":"ghsa","ecosystem":"npm","package":"n8n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-rc.0"},{"fixed":"2.29.8"}]}]},{"source":"osv","ecosystem":"npm","package":"n8n","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.123.64"}]}],"bundled":2},{"source":"osv","ecosystem":"npm","package":"n8n","ranges":[{"type":"SEMVER","events":[{"introduced":"2.30.0"},{"fixed":"2.30.1"}]}],"bundled":2},{"source":"osv","ecosystem":"npm","package":"n8n","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0-rc.0"},{"fixed":"2.29.8"}]}],"bundled":2},{"source":"osv","ecosystem":"Root:npm","package":"n8n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.19.3-aikido.7"},{"fixed":"2.19.3-aikido.8"},{"fixed":"2.19.3-aikido.9"},{"fixed":"2.19.3-aikido.10"},{"fixed":"2.19.3-aikido.11"},{"fixed":"2.19.3-aikido.12"},{"fixed":"2.19.3-aikido.13"},{"fixed":"2.19.3-aikido.14"},{"fixed":"2.19.3-aikido.15"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/n8n","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.19.3-root.io.7"},{"fixed":"2.19.3-root.io.8"},{"fixed":"2.19.3-root.io.9"},{"fixed":"2.19.3-root.io.10"},{"fixed":"2.19.3-root.io.11"},{"fixed":"2.19.3-root.io.12"},{"fixed":"2.19.3-root.io.13"},{"fixed":"2.19.3-root.io.14"},{"fixed":"2.19.3-root.io.15"}]}]}],"products":[{"vendor":"n8n","product":"n8n"},{"vendor":"n8n-io","product":"n8n"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c","tags":["vendor-advisory","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone","tags":["third-party-advisory","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65598","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-725q-c4vp-q4cg"},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64","tags":["web"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8","tags":["web"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g3r5-9h93-4j2c"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65598.json","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71539.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71539","tags":["advisory"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-65598","title":"n8n before 1.123.64 Remote Code Execution via Git Clone","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.","status":"published","published":"2026-07-22T11:21:45.418Z","modified":"2026-10-29T21:16:27.353Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high","assessor":"cna"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T13:37:13.934727Z"}],"euvd":[{"id":"EUVD-2026-47642","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.","status":"published","published":"2026-07-22T11:21:45Z","modified":"2026-10-29T21:16:27Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high"}],"updated_at":"2026-11-02T16:59:13.894662Z"}],"ghsa":[{"id":"GHSA-725q-c4vp-q4cg","title":"Duplicate Advisory: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-g3r5-9h93-4j2c. This link is maintained to preserve external references.\n\n## Original Description\nn8n 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.","status":"withdrawn","published":"2026-07-22T12:32:18Z","modified":"2026-07-22T17:54:56Z","cvss":[{"version":"4.0","score":8.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:40:50.444681Z"},{"id":"GHSA-g3r5-9h93-4j2c","title":"n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","description":"## Impact\nA TOCTOU race condition in the Git node's `clone` operation lets an authenticated user bypass its path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This plants a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, and since nodes execute JavaScript, this yields arbitrary code execution on the server.\n\nBoth self-hosted and cloud instances are affected, where authenticated users can create and run workflows using the Git node.\n\n## Patches\nUsers should upgrade to the patched version once available to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Restrict n8n instance access to fully trusted users only.\n- Disable the Git node by adding `n8n-nodes-base.git` to the `NODES_EXCLUDE` environment variable.\n- Restrict network egress from the n8n instance to prevent connections to attacker-controlled git repositories.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","status":"published","published":"2026-07-22T17:56:35Z","modified":"2026-07-22T17:56:36Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:40:50.444681Z"}],"nvd":[{"id":"CVE-2026-65598","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.","status":"published","published":"2026-07-22T12:18:20.037Z","modified":"2026-10-29T20:17:33.11Z","cvss":[{"version":"4.0","score":8.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:12:32.089897Z"}],"osv":[{"id":"CVE-2026-65598","title":"n8n before 1.123.64 Remote Code Execution via Git Clone","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.","status":"published","published":"2026-07-22T11:21:45.418Z","modified":"2026-10-31T02:30:41.831133531Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:45:14.096824Z"},{"id":"CVE-2026-71539","title":"n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","description":"n8n is an open source workflow automation platform. Prior to 1.123.64, 2.29.8, and 2.30.1, the Git node clone operation allows an authenticated workflow user to swap a validated directory for a symlink before cloning, planting a crafted repository in the community node directory that loads as a custom JavaScript node after restart and executes arbitrary code on the server. This issue is fixed in versions 1.123.64, 2.29.8, and 2.30.1.","status":"published","published":"2026-08-18T14:43:39.066Z","modified":"2026-10-28T02:30:56.05532907Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:45:15.164658Z"},{"id":"GHSA-725q-c4vp-q4cg","title":"Duplicate Advisory: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-g3r5-9h93-4j2c. This link is maintained to preserve external references.\n\n## Original Description\nn8n 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.","status":"withdrawn","published":"2026-07-22T12:32:18Z","modified":"2026-07-22T18:01:07.067332757Z","cvss":[{"version":"4.0","score":8.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:46:40.308826Z"},{"id":"GHSA-g3r5-9h93-4j2c","title":"n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","description":"## Impact\nA TOCTOU race condition in the Git node's `clone` operation lets an authenticated user bypass its path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This plants a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, and since nodes execute JavaScript, this yields arbitrary code execution on the server.\n\nBoth self-hosted and cloud instances are affected, where authenticated users can create and run workflows using the Git node.\n\n## Patches\nUsers should upgrade to the patched version once available to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Restrict n8n instance access to fully trusted users only.\n- Disable the Git node by adding `n8n-nodes-base.git` to the `NODES_EXCLUDE` environment variable.\n- Restrict network egress from the n8n instance to prevent connections to attacker-controlled git repositories.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","status":"published","published":"2026-07-22T17:56:35Z","modified":"2026-08-19T03:56:04.927861931Z","cvss":[{"version":"4.0","score":8.9,"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","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:46:47.119724Z"},{"id":"ROOT-APP-NPM-CVE-2026-65598","title":"CVE-2026-65598 in n8n - Patched by Root","description":"Root has patched CVE-2026-65598 in the n8n package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-10-06T03:42:47Z","modified":"2026-10-06T04:15:09.073330397Z","updated_at":"2026-11-02T15:53:27.649662Z"}]}}
