{"cve":"CVE-2026-65598","nvd":{"published":"2026-07-22T12:18:20.037","modified":"2026-10-24T17:10:00.220","status":"Analyzed","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.","cvss_v4":{"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","score":8.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5},"cwes":["CWE-367"],"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"],"products":["n8n:n8n"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-65598","score":0.00335,"percentile":0.26671,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-g3r5-9h93-4j2c","url":"https://osv.dev/vulnerability/GHSA-g3r5-9h93-4j2c","summary":"n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution","modified":"2026-08-19T03:56:04.927861931Z","packages":[{"ecosystem":"npm","name":"n8n","purl":"pkg:npm/n8n","ranges":["<1.123.64"],"fixed":["1.123.64"]},{"ecosystem":"npm","name":"n8n","purl":"pkg:npm/n8n","ranges":[">=2.30.0 <2.30.1"],"fixed":["2.30.1"]},{"ecosystem":"npm","name":"n8n","purl":"pkg:npm/n8n","ranges":[">=2.0.0-rc.0 <2.29.8"],"fixed":["2.29.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}