CVE-2020-7795 json
Command Injection
published 4y ago modified 4mo ago also GHSA-4h66-vghf-xg5x , EUVD-2022-6477
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.0%
- EPSS 4.0% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Patch / fix
- npm get-npm-package-version 1.0.7
- n/a get-npm-package-version 1.0.7
Is CVE-2020-7795 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.97% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | get-npm-package-version | <1.0.7 |
1.0.7 |
Affected products
- n/a get-npm-package-version
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
github.com
/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390
web, exploit, patch, third-party-advisory
-
github.com
/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965
web
-
npmjs.com
/package/get-npm-package-version/v/1.0.6
release-notes, third-party-advisory
-
github.com
/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17
broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2020-7795
advisory
-
github.com
/hoperyy/get-npm-package-version
package
-
github.com
/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17
web
Sources
- CVE List CVE-2020-7795
- GitHub Advisory GHSA-4h66-vghf-xg5x
- NVD CVE-2020-7795
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.