{"api_version":"1","generated_at":"2026-07-23T09:41:51+00:00","cve":"CVE-2020-7795","urls":{"html":"https://cve.report/CVE-2020-7795","api":"https://cve.report/api/cve/CVE-2020-7795.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7795","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7795"},"summary":{"title":"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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-08-02 14:15:00","updated_at":"2022-08-05 15:58:00"},"problem_types":["CWE-77"],"metrics":[],"references":[{"url":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec","name":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec","refsource":"MISC","tags":[],"title":"feat: add defence to Command Injection · hoperyy/get-npm-package-version@40b1cf3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17","name":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390","name":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390","refsource":"MISC","tags":[],"title":"Command Injection in get-npm-package-version | CVE-2020-7795 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.npmjs.com/package/get-npm-package-version/v/1.0.6","name":"https://www.npmjs.com/package/get-npm-package-version/v/1.0.6","refsource":"MISC","tags":[],"title":"get-npm-package-version - npm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17","name":"MISC:https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17","refsource":"MITRE","tags":[],"title":"get-npm-package-version/index.js at 338a5882298eb2c2194538db41166cae13c39e03 · hoperyy/get-npm-package-version · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-7795","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7795","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"JHU System Security Lab","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"7795","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"get-npm-package-version_project","cpe5":"get-npm-package-version","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-08-02T13:21:51.855495Z","ID":"CVE-2020-7795","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"get-npm-package-version","version":{"version_data":[{"version_affected":"<","version_value":"1.0.7"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390","name":"https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390"},{"refsource":"MISC","url":"https://www.npmjs.com/package/get-npm-package-version/v/1.0.6","name":"https://www.npmjs.com/package/get-npm-package-version/v/1.0.6"},{"refsource":"MISC","url":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17","name":"https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17"},{"refsource":"MISC","url":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec","name":"https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec"}]},"description":{"description_data":[{"lang":"eng","value":"The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"JHU System Security Lab"}]},"nvd":{"publishedDate":"2022-08-02 14:15:00","lastModifiedDate":"2022-08-05 15:58: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:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:get-npm-package-version_project:get-npm-package-version:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.0.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"7795","Ordinal":"168076","Title":"CVE-2020-7795","CVE":"CVE-2020-7795","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"7795","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}