CVE-2020-4059
HIGH 7.3CVSS 3.1Command injection in mversion
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.
- Published
- 18 Jun 2020
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-77
- Also known as
- GHSA-qjg4-w4c6-f6c6
- Sources
- NVDJSONOSV GHSA-qjg4-w4c6-f6c6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mversion_project | mversioncpe:2.3:a:mversion_project:mversion:*:*:*:*:*:*:*:* |
< 2.0.0 | 2.0.0 |
| OSV | npm | mversion | < 2.0.0 | 2.0.0 |
References
- https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338 · Patch, Third Party Advisory, WEB
- https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-4059 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 18 Jun 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jun 2020)