Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-49465: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in n8n-io n8n

0
Medium
VulnerabilityCVE-2026-49465cvecve-2026-49465cwe-22
Published: 06/23/2026 (06/23/2026, 15:49:46 UTC)
Source: CVE Database V5
Vendor/Project: n8n-io
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N

Affected software

n8n-io/n8n
pkg:npm/n8n-io/n8n
Affected versions
<1.123.48<2.21.8<2.22.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/23/2026, 16:55:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses