{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.0.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a9ddbc2bc86eb48f6976b85d195b6a94e81ffb22"
            },
            {
              "fixed": "6c76c9efd27c7ff5a5c6f187e8b7a435c4722338"
            }
          ],
          "repo": "https://github.com/mikaelbr/mversion",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2020-4059",
  "modified": "2026-03-13T21:48:37.605494340Z",
  "published": "2020-06-18T20:15:10.760Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338"
    }
  ],
  "related": [
    "GHSA-qjg4-w4c6-f6c6"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
      "type": "CVSS_V3"
    }
  ]
}