All vulnerabilities

Servers and applications

GHSA-fm93-2x43-6676

Git Node File Sandbox Escape via Relative Remote URL Base-Directory Mismatch

Severity
Medium 5.3
Published
2 Sept 2026
Last changed
2 Sept 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.123.76, 2.37.7, 2.38.2
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

The Git node validated a relative remote URL against the configured repositoryPath, then ran git with that path as its working directory. git walked up to the enclosing repository's top level and resolved the same relative URL from there, so a member who nested the repository one level below the configured path made the identical string resolve inside the file sandbox for the check but outside it for git. A fetch or pull then read a git repository outside N8N_RESTRICT_FILE_ACCESS_TO and merged its objects into the member's own repository, where they were read back. The patch resolves the remote reference from the directory git actually operates in before applying the sandbox check.

From n8n-io/n8n's security advisory.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Disable the Git node by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Workarounds as given by n8n-io/n8n's security advisory.

Affected software

SoftwareAffected versions
n8nServers and applications · github:n8n-io/n8n
  • Every version before 1.123.76
  • Every version before 2.38.2
  • Every version before 2.37.7

About n8n

low-code automation tool

From Wikidata, CC0 1.0.
Weekly downloads (npm)
103,525npm, 15 Nov 2026
Docker Hub pulls
286,090,810Docker Hub, 15 Nov 2026
GitHub stars
210,541GitHub, 15 Nov 2026
Forks
61,525GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Written in
TypeScript, Node.jsWikidata
First released
2019Wikidata
First published on GitHub
22 Jun 2019GitHub

References