{"id":"GHSA-4h66-vghf-xg5x","summary":"get-npm-package-version Command Injection vulnerability","details":"The package get-npm-package-version before 1.0.7 is vulnerable to Command Injection via the `main` function in index.js.","aliases":["CVE-2020-7795"],"modified":"2023-11-08T04:04:10.946675Z","published":"2022-08-03T00:00:57Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-08-10T17:43:31Z","nvd_published_at":"2022-08-02T14:15:00Z","cwe_ids":["CWE-77"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7795"},{"type":"WEB","url":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec"},{"type":"WEB","url":"https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965"},{"type":"PACKAGE","url":"https://github.com/hoperyy/get-npm-package-version"},{"type":"WEB","url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390"}],"affected":[{"package":{"name":"get-npm-package-version","ecosystem":"npm","purl":"pkg:npm/get-npm-package-version"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-4h66-vghf-xg5x/GHSA-4h66-vghf-xg5x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}