GHSA-cv3v-7846-6pxm Unauthorized File Access in node-git-server
Attackers can access private git repositories via absolute paths in node-git-server, exposing sensitive code without authentication.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-cv3v-7846-6pxm?
GHSA-cv3v-7846-6pxm is a path traversal vulnerability in node-git-server, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by GHSA-cv3v-7846-6pxm?
2 open source packages ship an affected version, including node-git-server.
| Package | Affected | Fixed in |
|---|---|---|
node-git-server npm | From 0.2.0 | 0.6.1 |
node-git-server npm | From 0.2.0 | 0.6.1 |
How do I fix GHSA-cv3v-7846-6pxm?
Upgrade node-git-server to 0.6.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is GHSA-cv3v-7846-6pxm being exploited?
There is no known exploitation of GHSA-cv3v-7846-6pxm in the wild and no public exploit code.