Command Injection Affecting mversion package, versions <2.0.1


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.37% (73rd percentile)
Expand this section
NVD
7.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-MVERSION-573174
  • published 25 Jun 2020
  • disclosed 24 Jun 2020
  • credit Habib Ullah

How to fix?

Upgrade mversion to version 2.0.1 or higher.

Overview

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", })