Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2026-86995

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

September 10, 2026

The Git node validated the repository that a fetch or pull targeted, but setUpstream wrote a branch.<name>.remote value into the repository’s own configuration without validating it. A subsequent fetch or pull resolved the remote from that configuration rather than from the checked parameter, so an authenticated user with workflow-edit permission could point it at any local repository the n8n process could read and receive its contents. The patch validates the branch remote configuration on the same terms as the repository parameter.

References

  • github.com/advisories/GHSA-qgpw-8g46-w95v
  • github.com/n8n-io/n8n/releases/tag/n8n@1.123.76
  • github.com/n8n-io/n8n/releases/tag/n8n@2.37.7
  • github.com/n8n-io/n8n/releases/tag/n8n@2.38.2
  • github.com/n8n-io/n8n/security/advisories/GHSA-qgpw-8g46-w95v
  • nvd.nist.gov/vuln/detail/CVE-2026-86995

Code Behaviors & Features

Detect and mitigate CVE-2026-86995 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.123.76, all versions starting from 2.0.0 before 2.37.7, all versions starting from 2.38.0 before 2.38.2

Fixed versions

  • 1.123.76
  • 2.37.7
  • 2.38.2

Solution

Upgrade to versions 1.123.76, 2.37.7, 2.38.2 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

npm/n8n/CVE-2026-86995.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:21 +0000.