CVE-2026-49465

High

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.

SeverityHigh
CVSS7.7
Exploit probability—
ProductN8n
PublishedJun 23, 2026
First seenJun 23, 2026

How to fix

Update
  • n8n n8n1.123.48, 2.21.8, 2.22.4 or later
  • n8n1.123.48, 2.22.4, 2.21.8 or later

Affected products

ProductAffected versionsFixed in
n8n n8nv < 1.123.48, 2.0.0 ≤ v < 2.21.8, 2.22.0 ≤ v < 2.22.41.123.48, 2.21.8, 2.22.4
n8nnpmv < 1.123.48, 2.22.0 ≤ v < 2.22.4, 2.0.0-rc.0 ≤ v < 2.21.81.123.48, 2.22.4, 2.21.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.