CVE-2026-86995 PUBLISHED

n8n: Git Node branch.<name>.remote Config Key Bypasses Sandbox Path Restriction, Enabling Local Git Repository Read

Assigner: GitHub_M
Reserved: 08.09.2026 Published: 08.09.2026 Updated: 08.09.2026

n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the Git node validated the repository parameter for fetch or pull, but setUpstream wrote a branch..remote value into repository configuration without validating it. A later fetch or pull resolved the remote from that configuration instead of the checked parameter. An authenticated workflow editor could therefore point Git at any local repository readable by the n8n process and receive its contents through packages/nodes-base/nodes/Git/GenericFunctions.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.

Metrics

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
CVSS Score: 5.3

Product Status

Vendor n8n-io
Product n8n
Versions
  • Version >= 2.38.0, < 2.38.2 is affected
  • Version >= 2.0.0, < 2.37.7 is affected
  • Version < 1.123.76 is affected

References

Problem Types

  • CWE-73: External Control of File Name or Path CWE
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE