gry@4.3.1 vulnerabilities

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

  • latest version

    6.1.1

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    8 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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