Vulnerability · Published Jun 18, 2020 · Assigned by GitHub_M

CVE-2020-4059Command Injection in mversion

High 7.3

In plain English

A high-severity command injection in mversion from mikaelbr. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)2.6%top 14.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

In mversion before 2.0.0, there is a command injection vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. This vulnerability is patched by version 2.0.0. Previous releases are deprecated in npm. As a workaround, make sure to escape git commit messages when using the commitMessage option for the update function.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmversion2.0.0GHSA-qjg4-w4c6-f6c6

Affected products (as reported)

VendorProductVersions
mikaelbr mversion < 2.0.0

Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

References