Home / get-npm-package-version / get-npm-package-version / CVE-2020-7795
CVE-2020-7795: is it exploited, and which versions of get-npm-package-version are affected and fixed?
CVE-2020-7795 is a command injection vulnerability in get-npm-package-version. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: get-npm-package-version before 1.0.7 (GitHub advisory GHSA-4h66-vghf-xg5x). Fixed in 1.0.7 (GitHub advisory GHSA-4h66-vghf-xg5x). Severity: High (7.3, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 28, 2026, 20:30 UTC and NVD November 19, 2026, 07:46 UTC.
What is CVE-2020-7795?
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
From the CVE record by snyk, last updated September 16, 2024, 23:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| get-npm-package-version | before 1.0.7 | 1.0.7 |
As the CVE record by snyk states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | get-npm-package-version | < 1.0.7 | 1.0.7 | GHSA-4h66-vghf-xg5x |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 10, 2022. Summary: get-npm-package-version Command Injection vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| get-npm-package-version project | get-npm-package-version | before 1.0.7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:25 UTC.
How severe is CVE-2020-7795?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P | snyk |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-7795 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.97% probability of exploitation activity in the next 30 days, percentile 90.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
Where are the vendor advisories and references?
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 x_refsource_MISC
- https://www.npmjs.com/package/get-npm-package-version/v/1.0.6 x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17 x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec x_refsource_MISC
Who found and reported it?
- JHU System Security Lab (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 21, 2020
- Published
- August 2, 2022, 13:27 UTC
- CVE record updated
- September 16, 2024, 23:16 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 03:25 UTC
- Last checked
- CVE list November 28, 2026, 20:30 UTC; NVD November 19, 2026, 07:46 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2020-7795
Is CVE-2020-7795 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 3.97% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of get-npm-package-version are affected by CVE-2020-7795?
get-npm-package-version before 1.0.7, per the GitHub advisory GHSA-4h66-vghf-xg5x. The tables above give every range the sources list.
Which version fixes CVE-2020-7795?
1.0.7, per the GitHub advisory GHSA-4h66-vghf-xg5x. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-7795?
High (7.3, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2020-7795?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.