gry@4.1.0 vulnerabilities

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

  • latest version

    6.1.0

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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