mversion@1.12.0 vulnerabilities

A cross packaging manager module version handler/bumper

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    5 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    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