CVE-2026-49465: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in n8n-io n8n
n8n is an open source workflow automation platform. Prior to 1.123.48, 2.21.8, and 2.22.4, an 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. This vulnerability is fixed in 1.123.48, 2.21.8, and 2.22.4.
AI Analysis
Technical Summary
CVE-2026-49465 is a path traversal vulnerability (CWE-22) in the n8n workflow automation platform. Before versions 1.123.48, 2.21.8, and 2.22.4, an authenticated user with permission to create or modify workflows could supply a local filesystem path as the source or target repository in the Git node's Clone or Push operations. This bypassed the N8N_RESTRICT_FILE_ACCESS_TO sandbox restrictions, enabling cloning and reading of any local git repository accessible to the n8n process. The vulnerability allows circumvention of intended file access controls. The issue is resolved in the specified fixed versions.
Potential Impact
An authenticated user with workflow creation or modification permissions can bypass file access restrictions and read arbitrary local git repositories accessible to the n8n process. This could lead to unauthorized disclosure of sensitive repository contents. The vulnerability does not allow privilege escalation or remote unauthenticated access but compromises confidentiality within the scope of the n8n process permissions.
Mitigation Recommendations
Upgrade n8n to version 1.123.48, 2.21.8, or 2.22.4 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor advisory specifying fixed versions.
CVE-2026-49465: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in n8n-io n8n
Description
n8n is an open source workflow automation platform. Prior to 1.123.48, 2.21.8, and 2.22.4, an 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. This vulnerability is fixed in 1.123.48, 2.21.8, and 2.22.4.
CVSS v4.0
Score 6.0medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49465 is a path traversal vulnerability (CWE-22) in the n8n workflow automation platform. Before versions 1.123.48, 2.21.8, and 2.22.4, an authenticated user with permission to create or modify workflows could supply a local filesystem path as the source or target repository in the Git node's Clone or Push operations. This bypassed the N8N_RESTRICT_FILE_ACCESS_TO sandbox restrictions, enabling cloning and reading of any local git repository accessible to the n8n process. The vulnerability allows circumvention of intended file access controls. The issue is resolved in the specified fixed versions.
Potential Impact
An authenticated user with workflow creation or modification permissions can bypass file access restrictions and read arbitrary local git repositories accessible to the n8n process. This could lead to unauthorized disclosure of sensitive repository contents. The vulnerability does not allow privilege escalation or remote unauthenticated access but compromises confidentiality within the scope of the n8n process permissions.
Mitigation Recommendations
Upgrade n8n to version 1.123.48, 2.21.8, or 2.22.4 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is confirmed by the vendor advisory specifying fixed versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-30T04:17:43.094Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3ab6d9eed863c81e4f9e9d
Added to database: 06/23/2026, 16:39:53 UTC
Last enriched: 06/23/2026, 16:55:56 UTC
Last updated: 06/23/2026, 17:39:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.