GitHub Advisoryadvisory · npm
GHSA-4h66-vghf-xg5x get-npm-package-version Command Injection vulnerability
CRITICAL
Official page ↗
- Aliases
- CVE-2020-7795
- Ecosystem
- npm
- Packages
- get-npm-package-version
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-77
- Reviewed
- 2022-08-10
Affected packages
• npm get-npm-package-version: < 1.0.7 → fixed in 1.0.7
Description
The package get-npm-package-version before 1.0.7 is vulnerable to Command Injection via the `main` function in index.js.
Related
Alias · CVE (1)
- CVE-2020-7795 The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js. vulnerability
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7795 advisory
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec web
- https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965 web
- https://github.com/hoperyy/get-npm-package-version package
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17 web
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 web