{"id":"CVE-2026-65598","published":"2026-07-22T11:21:45Z","modified":"2026-10-29T21:16:27Z","title":"n8n before 1.123.64 Remote Code Execution via Git Clone","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00335,"percentile":0.19408,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone","tags":["third-party-advisory"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":3.88},{"name":"CVSS severity","points":6.23}]},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["< 1.123.64"]},{"vendor":"n8n-io","product":"n8n","versions":[">= 2.30.0, < 2.30.1"]},{"vendor":"n8n-io","product":"n8n","versions":[">= 2.0.0-rc.0, < 2.29.8"]}],"fixedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["1.123.64"]},{"vendor":"n8n-io","product":"n8n","versions":["2.30.1"]},{"vendor":"n8n-io","product":"n8n","versions":["2.29.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-22T12:22:18.963626Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.123.64",">=2.30.0, <2.30.1",">=2.0.0-rc.0, <2.29.8"],"patched":["1.123.64","2.30.1","2.29.8"],"from":["GHSA-g3r5-9h93-4j2c"],"provenance":"source"}],"summary":{"text":"A time-of-check to time-of-use race condition in the Git node's clone operation in n8n (before 1.123.64, 2.29.8, and 2.30.1) lets a flawed path validation be bypassed by swapping a directory for a symlink between the check and the clone. An authenticated user, with no user interaction required, can exploit this on self-hosted or cloud instances by planting 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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:49Z"},"euvd":{"id":"EUVD-2026-47642","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-n8n-cve-2026-65598","children":[{"from":"CVE-2026-65598","to":"CVE-2026-71539","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-g3r5-9h93-4j2c","via":"reference","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c"},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same product + CWE + description similarity"}]}]}}