mversion@0.1.2 vulnerabilities

A cross packaging manager module version handler/bumper

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mversion 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

    mversion is a cross packaging manager module version handler/bumper.

    Affected versions of this package are vulnerable to Command Injection. The issue occurs because tagName user input is formatted inside the exec function is executed without any checks.

    PoC:

    var mversion = require('mversion');
    
    mversion.update({
           version: "major",
           commitMessage: "testing",
           tagName: "; touch hbkhan",
     })
    

    How to fix Command Injection?

    Upgrade mversion to version 2.0.1 or higher.

    <2.0.1
    • H
    Remote Code Execution (RCE)

    mversion is a cross packaging manager module version handler/bumper.

    Affected versions of this package are vulnerable to Remote Code Execution (RCE). Shell git commit messages are not escaped.

    How to fix Remote Code Execution (RCE)?

    Upgrade mversion to version 2.0.0 or higher.

    <2.0.0