Unauthorized File Access in node-git-server
Versions of node-git-server prior to 0.6.1 are vulnerable to Unauthorized File Access. It is possible to access any git repository by using absolute paths, which may allow attackers to access private repositories.
Recommendation
Upgrade to version 0.6.1 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | node-git-server | >= 0.2.0, < 0.6.1 | 0.6.1 |
References
- https://github.com/gabrielcsapo/node-git-server/pull/62
- https://github.com/gabrielcsapo/node-git-server/commit/ac26650f69bc445d71e4f2c55328676d10a4be43
- https://github.com/gabrielcsapo/node-git-server/commit/fb8d62710e3d78c796e04a33fcff66cea3f212f3
- https://github.com/gabrielcsapo/node-git-server
- https://github.com/gabrielcsapo/node-git-server/blob/0.2.0/lib/git.js
- https://github.com/gabrielcsapo/node-git-server/tree/0.1.0
- https://snyk.io/vuln/SNYK-JS-NODEGITSERVER-474343
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-552- Platform
- npm
- Package
node-git-server- Disclosed
- 03.09.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-cv3v-7846-6pxm - CC BY 4.0
Vulnerability history: node-git-server
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.