Vulnerability · Published Aug 2, 2022 · Assigned by snyk
CVE-2020-7795Command Injection
High 7.3
In plain English
A high-severity security flaw in get-npm-package-version. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.3High
Exploit odds (30 days)4.0%top 9.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | get-npm-package-version | 1.0.7 | GHSA-4h66-vghf-xg5x |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | get-npm-package-version | unspecified – before 1.0.7 |
References
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 x_refsource_MISC
- https://www.npmjs.com/package/get-npm-package-version/v/1.0.6 x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17 x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec x_refsource_MISC