mversion@1.10.1 vulnerabilities

A cross packaging manager module version handler/bumper

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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