{"api_version":"1","generated_at":"2026-07-23T10:07:44+00:00","cve":"CVE-2020-4059","urls":{"html":"https://cve.report/CVE-2020-4059","api":"https://cve.report/api/cve/CVE-2020-4059.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-4059","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-4059"},"summary":{"title":"CVE-2020-4059","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2020-06-18 20:15:00","updated_at":"2020-06-29 00:50:00"},"problem_types":["CWE-77"],"metrics":[],"references":[{"url":"https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6","name":"https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Command injection security issue · Advisory · mikaelbr/mversion · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338","name":"https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Fixes missing shell escape for git commit message · mikaelbr/mversion@6c76c9e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-4059","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-4059","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"4059","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mversion_project","cpe5":"mversion","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"4059","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mversion_project","cpe5":"mversion","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-4059","qid":"983861","title":"Nodejs (npm) Security Update for mversion (GHSA-qjg4-w4c6-f6c6)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-4059","STATE":"PUBLIC","TITLE":"Command Injection in mversion"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"mversion","version":{"version_data":[{"version_value":"< 2.0.0"}]}}]},"vendor_name":"mikaelbr"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6","refsource":"CONFIRM","url":"https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6"},{"name":"https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338","refsource":"MISC","url":"https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338"}]},"source":{"advisory":"GHSA-qjg4-w4c6-f6c6","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2020-06-18 20:15:00","lastModifiedDate":"2020-06-29 00:50:00","problem_types":["CWE-77"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mversion_project:mversion:*:*:*:*:*:*:*:*","versionEndExcluding":"2.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"4059","Ordinal":"164052","Title":"CVE-2020-4059","CVE":"CVE-2020-4059","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"4059","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"4059","Ordinal":"2","NoteData":"2020-06-18","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"4059","Ordinal":"3","NoteData":"2020-06-18","Type":"Other","Title":"Modified"}]}}}