Command Injection Affecting mversion package, versions <2.0.1
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.37% (74th
percentile)
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
Introduced: 24 Jun 2020
CVE-2020-7688 Open this link in a new tabHow 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",
})
References
CVSS Scores
version 3.1