hoperyy/get-npm-package-version · Security
get-npm-package-version Command Injection vulnerability
- GHSA ID
- GHSA-4h66-vghf-xg5x
- CVE ID
- CVE-2020-7795
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
The package get-npm-package-version before 1.0.7 is vulnerable to Command Injection via the main function in index.js.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7795 ↗
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec ↗
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 ↗
- https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965 ↗
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17 ↗
- https://github.com/advisories/GHSA-4h66-vghf-xg5x ↗