{"id":"GHSA-g3r5-9h93-4j2c","revision":"a12eec5adb3b4576b602ae7ee24f3330","records":[{"revision":"a12eec5adb3b4576b602ae7ee24f3330","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-g3r5-9h93-4j2c","aliases":["CVE-2026-65598","CVE-2026-71539"],"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.","state":0,"publishedAt":"2026-07-22T17:56:35+00:00","modifiedAt":"2026-08-19T03:56:04.9278619+00:00","affected":[{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.123.64"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.30.0"},{"kind":"fixed","version":"2.30.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0-rc.0"},{"kind":"fixed","version":"2.29.8"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c","https://nvd.nist.gov/vuln/detail/CVE-2026-65598","https://github.com/n8n-io/n8n","https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64","https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8","https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1","https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone"],"sourceUrl":"https://github.com/advisories/GHSA-g3r5-9h93-4j2c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g3r5-9h93-4j2c","identifiers":["GHSA-g3r5-9h93-4j2c","CVE-2026-65598","CVE-2026-71539"]},"retained":false,"historicalAffected":[]}],"coverage":[]}