Description
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | High7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.0% · top 9.5% of all CVEs (6 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.3.
Weakness
- Command Injection
- CWE-77 (opens in a new tab)All about CWE-77 and its CVEs
Affected products
get-npm-package-version
- affected unspecified – < 1.0.7
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmget-npm-package-versionGHSA-4h66-vghf-xg5x (opens in a new tab)
References (4)
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/package/get-npm-package-version/v/1.0.6 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4h66-vghf-xg5x (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-7795)Record last updated .