{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-7795","id":"CVE-2020-7795","title":"Command Injection","description":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.","descriptionLong":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.","published":"2022-08-02T13:27:05.665Z","updated":"2026-10-20T10:53:30.853455022Z","reserved":"2020-01-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"high","products":["get-npm-package-version"],"affectedProducts":[{"vendor":"n/a","product":"get-npm-package-version","defaultStatus":null,"versions":[{"lessThan":"1.0.7","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"get-npm-package-version","purl":"pkg:npm/get-npm-package-version","ranges":["<1.0.7"],"fixed":["1.0.7"],"advisory":"GHSA-4h66-vghf-xg5x"}],"cwes":["CWE-77"],"aliases":["GHSA-4h66-vghf-xg5x"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.npmjs.com/package/get-npm-package-version/v/1.0.6","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7795","tags":["advisory"]},{"url":"https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965","tags":["web"]},{"url":"https://github.com/hoperyy/get-npm-package-version","tags":["package"]},{"url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03968,"epssPercentile":0.90669,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-7795","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7795","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-7795","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4h66-vghf-xg5x","ok":true,"note":"GHSA-4h66-vghf-xg5x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-7795","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}