Command injection in get-npm-package-version
Priority MEDIUM 49CWE-77Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Why it matters now
EPSS 0.03968 90th percentileScored 2026-11-07
Fix Fixed get-npm-package-version: 1.0.7get-npm-package-version (npm): 1.0.7
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | get-npm-package-version | before 1.0.7 | 1.0.7 | Patch available | CNA |
| — | get-npm-package-version (npm) | before 1.0.7 | 1.0.7 | Patch available | GHSA-4h66-vghf-xg5x |
- get-npm-package-version Vendor— Affected before 1.0.7 Fixed in 1.0.7 Patch available CNA
- get-npm-package-version (npm) Vendor— Affected before 1.0.7 Fixed in 1.0.7 Patch available GHSA-4h66-vghf-xg5x
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:get-npm-package-version_project:get-npm-package-version:*:*:*:*:*:node.js:*:* | before 1.0.7 | Vulnerable | Get-npm-package-version Project |
- cpe:2.3:a:get-npm-package-version_project:get-npm-package-version:*:*:*:*:*:node.js:*:* Versions before 1.0.7 Vulnerable ·Get-npm-package-version Project
Remediation
- Fix · CNA get-npm-package-version Fixed in 1.0.7
- Fix · GHSA-4h66-vghf-xg5x get-npm-package-version (npm) Fixed in 1.0.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-7795
- 2026-10-03 Alias added: GHSA-4h66-vghf-xg5x
- 2026-10-16 EPSS moved to the 90th–95th percentile
References
Patch 1
Advisory 2
Other 4
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17
- https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965
- https://github.com/hoperyy/get-npm-package-version
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17
Sources
- CVE-2020-7795 · CVE Program
- CVE-2020-7795 · NVD
- FIRST EPSS
- GHSA-4h66-vghf-xg5x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences