# CVE-2020-4059: Command Injection in mversion

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.60%, higher than 85% of CVEs (2026-12-01)
- Published: 2020-06-18T19:23:17.000Z
- Modified: 2026-09-10T03:48:51.556Z
- Also known as: GHSA-qjg4-w4c6-f6c6
- Weaknesses: CWE-77
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mikaelbr mversion: < 2.0.0
- mversion (npm): before 2.0.0
- mversion_project mversion: before 2.0.0

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6> (third-party-advisory, web)
- <https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-4059> (advisory)

## Sources

- CVE List: [CVE-2020-4059](https://www.cve.org/CVERecord?id=CVE-2020-4059), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qjg4-w4c6-f6c6](https://github.com/advisories/GHSA-qjg4-w4c6-f6c6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-4059](https://nvd.nist.gov/vuln/detail/CVE-2020-4059), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-4059 · Whole record: https://cve.day/CVE-2020-4059.json · Rebuilt by cve.day 2026-11-25T22:57:53.038Z
