In short
- CVE-2020-4059 is a HIGH (CVSS 7.3) vulnerability affecting mversion (mversion project), mversion.
- Chance of exploitation in the next 30 days (EPSS): 2.6%, higher than 85.4% of all vulnerabilities.
- Fix: update to 2.0.0 or later.
| Package | Affected versions | Patched versions |
|---|
| mversion | < 2.0.0
| 2.0.0
|
| mversion npm | < 2.0.0
| 2.0.0
|
Description
Impact
This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.
Patches
Patched by version 2.0.0. Previous releases are deprecated in npm.
Workarounds
Make sure to escape git commit messages when using the commitMessage option for the update function.
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free