{"id":"CVE-2026-49465","title":"n8n: Git Node Clone and Push Operations Bypass File Sandbox","summary":"n8n: Git Node Clone and Push Operations Bypass File Sandbox","severity":"medium","cvss":7.7,"cwe":["CWE-22"],"vendor":"n8n","product":"n8n","ecosystem":"npm","affected":["n8n < 1.123.48","n8n >= 2.22.0, < 2.22.4","n8n >= 2.0.0-rc.0, < 2.21.8"],"patched":["n8n 1.123.48","n8n 2.22.4","n8n 2.21.8"],"published":"2026-06-16","updated":"2026-06-16","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-5xp3-2w67-427v","references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-5xp3-2w67-427v"},{"url":"https://github.com/advisories/GHSA-5xp3-2w67-427v"}],"tags":["ghsa","npm"],"epss":0.0054,"epssPercentile":0.44153,"ingestedAt":"2026-06-29T14:31:47.728Z","slug":"CVE-2026-49465","body":"## Overview\n\n## Impact\nAn authenticated user with permission to create or modify workflows could supply a local filesystem path as the source repository in the Git node's Clone operation, or as the target repository in the Push operation, bypassing the `N8N_RESTRICT_FILE_ACCESS_TO` file sandbox. This allowed the contents of any local git repository accessible to the n8n process to be cloned into an allowed path and read, circumventing the access restrictions that correctly blocked direct file reads to the same paths.\n\n## Patches\nThe issue has been fixed in n8n versions 1.123.48, 2.21.8, and 2.22.4. Users should upgrade to one of these versions or later to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Limit workflow creation and editing permissions to fully trusted users only.\n- Disable the Git node by adding `n8n-nodes-base.git` to the `NODES_EXCLUDE` environment variable.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.\n\n## Affected packages\n\n- `n8n < 1.123.48`\n- `n8n >= 2.22.0, < 2.22.4`\n- `n8n >= 2.0.0-rc.0, < 2.21.8`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `n8n 1.123.48`\n- `n8n 2.22.4`\n- `n8n 2.21.8`","depth":"sunlit","depthScore":42,"depthScoreParts":{"impact":42.4,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}