Vulnerability DatabaseGHSA-cv3v-7846-6pxm

GHSA-cv3v-7846-6pxm
JavaScript vulnerability analysis and mitigation

Overview

A high-severity unauthorized file access vulnerability was discovered in node-git-server versions prior to 0.6.1. The vulnerability was disclosed on October 14, 2019, and published to various security databases. The vulnerability affects the node-git-server package, which is a configurable git server written in Node.js (GitHub Advisory, Snyk Report).

Technical details

The vulnerability allows attackers to access any git repository by using absolute paths, potentially exposing private repositories. The issue stems from the path.resolve method prioritizing the second argument, which means when a repository name starts with '/', it can overwrite the repoDir parameter. For example, path.resolve('/my/repo/folder','/etc') would resolve to '/etc'. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High), with the following metrics: Network attack vector, Low attack complexity, No privileges required, No user interaction, Unchanged scope, High confidentiality impact, and No impact on integrity or availability (GitHub Advisory, GitHub PR).

Impact

The vulnerability enables attackers to access private repositories through arbitrary absolute paths. This could lead to unauthorized access to sensitive repository data and potentially impact authentication mechanisms by corrupting repository names (Snyk Report, GitHub PR).

Exploitability

The vulnerability can be exploited by sending repository names that start with '/' in git commands. For example, an attacker could use 'git clone http://localhost:7005//Users/root/Desktop/testrepo.git ./cloned-from-desktop' to clone a repository from an arbitrary absolute path. The same technique could be used for git push/pull operations (GitHub PR).

Mitigation and workarounds

The vulnerability has been patched in version 0.6.1 of node-git-server. The fix involves changing the path resolution method from path.resolve to path.join to prevent directory traversal. Users are recommended to upgrade to version 0.6.1 or later (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vx52-2968-3vc6HIGH7.4
  • JavaScript logoJavaScript
  • pnpm
NoYesSep 01, 2026
GHSA-2rx9-3g3h-c2jvHIGH7.1
  • JavaScript logoJavaScript
  • pnpm
NoYesSep 01, 2026
GHSA-cp6q-959q-f8rhMEDIUM6.4
  • JavaScript logoJavaScript
  • @tiptap/core
NoYesSep 02, 2026
GHSA-p498-v437-472gMEDIUM5.7
  • JavaScript logoJavaScript
  • @humanfs/node
NoYesSep 02, 2026
CVE-2026-84371MEDIUM5.4
  • JavaScript logoJavaScript
  • cockpit-image-builder
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management