{"id":"CVE-2025-62726","published":"2025-10-30T16:24:11Z","modified":"2025-10-31T18:19:31Z","title":"n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook","vendor":"n8n","product":"n8n","tier":"tail","description":{"text":"n8n is an open source workflow automation platform. Prior to 1.113.0, a remote code execution vulnerability exists in the Git Node component available in both Cloud and Self-Hosted versions of n8n. When a malicious actor clones a remote repository containing a pre-commit hook, the subsequent use of the Commit operation in the Git Node can inadvertently trigger the hook’s execution. This allows attackers to execute arbitrary code within the n8n environment, potentially compromising the system and any connected credentials or workflows. This vulnerability is fixed in 1.113.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01245,"percentile":0.69247,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-xgp7-7qjq-vg47","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/n8n-io/n8n/pull/19559","tags":["x_refsource_MISC"]},{"url":"https://github.com/n8n-io/n8n/commit/5bf3db5ba84d3195bbe11bbd3c62f7086e090997","tags":["x_refsource_MISC"]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":13.85},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-11-24","earliestUrl":"https://github.com/baktistr/cve-2025-62726-poc","repos":[{"name":"baktistr/cve-2025-62726-poc","url":"https://github.com/baktistr/cve-2025-62726-poc","stars":0,"created":"2025-11-24"},{"name":"Muzyli/cve-2025-62726-malicious-repo","url":"https://github.com/Muzyli/cve-2025-62726-malicious-repo","stars":0,"created":"2025-12-09"}]},"first":{"date":"2025-11-24","source":"PoC-in-GitHub","url":"https://github.com/baktistr/cve-2025-62726-poc"},"provenance":"source"},"vendorSlug":"n8n","affectedVersions":[{"vendor":"n8n-io","product":"n8n","versions":["< 1.113.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-31T18:19:00.462279Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"n8n","vulnerableRanges":["<1.113.0"],"patched":["1.113.0"],"from":["GHSA-xgp7-7qjq-vg47"],"provenance":"source"}],"summary":{"text":"A flaw in the Git Node component of n8n, the open source workflow automation platform, allows code to run when a pre-commit hook from a malicious remote repository is triggered by the Commit operation. An attacker who has a low-privilege account and can get a malicious repository cloned into n8n can execute arbitrary code within the n8n environment, which can compromise the system and any connected credentials or workflows, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:28Z"},"euvd":{"id":"EUVD-2025-37026","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-n8n-cve-2025-57749","children":[{"from":"CVE-2025-62726","to":"CVE-2025-65964","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/nodes-base/nodes/Git/Git.node.ts"],"commits":["https://github.com/n8n-io/n8n/commit/5bf3db5ba84d3195bbe11bbd3c62f7086e090997","https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04"],"basis":"shared function","functions":["Git"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2025-62726","to":"CVE-2026-21877","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/nodes-base/nodes/Git/Git.node.ts"],"commits":["https://github.com/n8n-io/n8n/commit/5bf3db5ba84d3195bbe11bbd3c62f7086e090997","https://github.com/n8n-io/n8n/commit/f4b009d00d1f4ba9359b8e8f1c071e3d910a55f6"],"basis":"shared function","functions":["Git"]}]},{"from":"CVE-2025-62726","to":"CVE-2026-25049","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/nodes-base/nodes/Git/Git.node.ts"],"commits":["https://github.com/n8n-io/n8n/commit/5bf3db5ba84d3195bbe11bbd3c62f7086e090997","https://github.com/n8n-io/n8n/commit/7860896909b3d42993a36297f053d2b0e633235d","https://github.com/n8n-io/n8n/commit/936c06cfc1ad269a89e8ef7f8ac79c104436d54b"],"basis":"shared function","functions":["Git"]}]}],"packageHistory":[{"cve":"CVE-2025-52554","published":"2025-07-03","fixed":"1.99.1","kev":false},{"cve":"CVE-2025-57749","published":"2025-08-20","fixed":"1.106.0","kev":false},{"cve":"CVE-2025-58177","published":"2025-09-15","fixed":"1.107.0","kev":false,"link":{"from":"CVE-2025-58177","to":"CVE-2025-62726","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:n8n","fromFixed":"1.107.0","toFixed":"1.113.0","daysApart":45}]}},{"cve":"CVE-2025-62726","published":"2025-10-30","fixed":"1.113.0","kev":false},{"cve":"CVE-2025-61914","published":"2025-12-26","fixed":"1.114.0","kev":false,"link":{"from":"CVE-2025-62726","to":"CVE-2025-61914","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:n8n","fromFixed":"1.113.0","toFixed":"1.114.0","daysApart":57}]}},{"cve":"CVE-2025-61917","published":"2026-02-04","fixed":"1.114.3","kev":false},{"cve":"CVE-2025-65964","published":"2025-12-08","fixed":"1.119.2","kev":false}],"package":"npm:n8n"}}