CVE-2020-7795
CWE-77Published: August 2, 2022· Updated: Jun 17, 2026
Official Description
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Risk Analysis
The get-npm-package-version package is susceptible to command injection, allowing attackers to execute arbitrary commands on the host system. This critical vulnerability poses a severe risk to any environment using the affected package.
No public exploit is known, and it is not in the KEV catalog. The flaw is remotely exploitable with low complexity.
Update the get-npm-package-version package to version 1.0.7 or later.
Technical Analysis
CVE-2020-7795 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (8)
Quick Facts
Related CVEs (CWE-77)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2020-7795 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts