{"id":"CVE-2026-65598","state":"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.","publishedAt":"2026-07-22T11:21:45.418Z","updatedAt":"2026-10-29T21:16:27.353Z","severity":{"score":8.9,"label":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["n8n-io n8n"],"affected":[{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.123.64","versionType":"semver"},{"version":"1.123.64","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.30.0","status":"affected","lessThan":"2.30.1","versionType":"semver"},{"version":"2.30.1","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.0.0-rc.0","status":"affected","lessThan":"2.29.8","versionType":"semver"},{"version":"2.29.8","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c","https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone"],"weaknesses":["CWE-367"],"ingestedAt":"2026-10-29T23:14:04.755Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/65xxx/CVE-2026-65598.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-65598","state":"PUBLISHED","datePublished":"2026-07-22T11:21:45.418Z","dateUpdated":"2026-10-29T21:16:27.353Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-07-22T10:45:44.833Z"},"containers":{"cna":{"title":"n8n before 1.123.64 Remote Code Execution via Git Clone","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.123.64","versionType":"semver"},{"version":"1.123.64","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.30.0","status":"affected","lessThan":"2.30.1","versionType":"semver"},{"version":"2.30.1","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.0.0-rc.0","status":"affected","lessThan":"2.29.8","versionType":"semver"},{"version":"2.29.8","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c","name":"GitHub Security Advisory (GHSA-g3r5-9h93-4j2c)","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone","name":"VulnCheck Advisory: n8n before 1.123.64 Remote Code Execution via Git Clone","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"LOW","subAvailabilityImpact":"LOW","baseScore":8.9,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","lang":"en","description":"Time-of-check Time-of-use (TOCTOU) Race Condition","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-29T21:16:27.353Z"},"datePublic":"2026-07-08T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.123.64"},{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.30.1","versionStartIncluding":"2.30.0"},{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.29.8","versionStartIncluding":"2.0.0-rc.0"}]}]}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-22T12:22:18.963626Z","id":"CVE-2026-65598","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-22T12:22:51.683Z"}}]}}}