{"id":"CVE-2020-7795","aliases":["EUVD-2022-6477","GHSA-4h66-vghf-xg5x"],"status":"published","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.","severity":{"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.03968,"percentile":0.90538,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2022-08-02T13:27:05Z","modified":"2026-10-20T10:53:30Z","fixes":[{"ecosystem":"npm","package":"get-npm-package-version","fixed_in":["1.0.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"get-npm-package-version","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}]},{"source":"osv","ecosystem":"npm","package":"get-npm-package-version","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}]}],"products":[{"vendor":"get-npm-package-version_project","product":"get-npm-package-version"}],"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/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4h66-vghf-xg5x"},{"url":"https://github.com/hoperyy/get-npm-package-version","tags":["package"]}],"sources":{"cve":[{"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.","status":"published","published":"2022-08-02T13:27:05.665Z","modified":"2024-09-16T23:16:27.065Z","cvss":[{"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","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.787905Z"}],"euvd":[{"id":"EUVD-2022-6477","description":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.","status":"published","published":"2022-08-02T13:27:05Z","modified":"2024-09-16T23:16:27Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-03T00:54:55.200068Z"}],"ghsa":[{"id":"GHSA-4h66-vghf-xg5x","title":"get-npm-package-version Command Injection vulnerability","description":"The package get-npm-package-version before 1.0.7 is vulnerable to Command Injection via the `main` function in index.js.","status":"published","published":"2022-08-03T00:00:57Z","modified":"2023-01-30T05:01:18Z","cvss":[{"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","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:27.500048Z"}],"nvd":[{"id":"CVE-2020-7795","description":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.","status":"published","published":"2022-08-02T14:15:09.953Z","modified":"2026-06-17T03:25:27.67Z","cvss":[{"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","level":"high","assessor":"secondary"},{"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","level":"critical","assessor":"primary"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:06:46.951463Z"}],"osv":[{"id":"CVE-2020-7795","description":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.","status":"published","published":"2022-08-02T14:15:09.953Z","modified":"2026-10-20T10:53:30.853455022Z","cvss":[{"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","level":"critical"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-4h66-vghf-xg5x","title":"get-npm-package-version Command Injection vulnerability","description":"The package get-npm-package-version before 1.0.7 is vulnerable to Command Injection via the `main` function in index.js.","status":"published","published":"2022-08-03T00:00:57Z","modified":"2023-11-08T04:04:10.946675Z","cvss":[{"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","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:37.148947Z"}]}}
