{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-65598","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-07-22T10:45:44.833Z","datePublished":"2026-07-22T11:21:45.418Z","dateUpdated":"2026-07-22T12:22:51.683Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-07-22T11:21:45.418Z"},"datePublic":"2026-07-08T00:00:00.000Z","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."}],"problemTypes":[{"descriptions":[{"lang":"en","description":"Time-of-check Time-of-use (TOCTOU) Race Condition","cweId":"CWE-367","type":"CWE"}]}],"affected":[{"vendor":"n8n-io","product":"n8n","defaultStatus":"unaffected","packageURL":"pkg:npm/n8n","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"1.123.64"},{"version":"1.123.64","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","defaultStatus":"unaffected","packageURL":"pkg:npm/n8n","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.30.1"},{"version":"2.30.1","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","defaultStatus":"unaffected","packageURL":"pkg:npm/n8n","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.29.8"},{"version":"2.29.8","status":"unaffected","versionType":"semver"}]}],"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"},{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.29.8"}]}]}],"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"}}],"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"]},{"name":"VulnCheck Advisory: n8n before 1.123.64 Remote Code Execution via Git Clone","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-07-22T12:22:51.683Z"}}]}}