CRITICAL
Command Injection
Published Aug 2, 2022
9.8
CRITICALCVSS 3.1
EPSS 3.86%
Description
The package get-npm-package-version before 1.0.7 are vulnerable to Command Injection via main function in index.js.
Affected products
- Vendor n/a Product Get-Npm-Package-Version Defaultn/a
- Version unspecifiedStatusaffectedConstraints<1.0.7
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Get-Npm-Package-Version | n/a |
|
- < 1.0.7
No data.
No Red Hat product state for this CVE.
get-npm-package-version
npm
Introduced 0 Fixed 1.0.7
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | get-npm-package-version | 0 | 1.0.7 |
Remediation
No remediation recorded yet.
Weaknesses (1)
References (8)
- https://github.com/advisories/GHSA-4h66-vghf-xg5x Advisory
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17 x_refsource_MISCBroken Link
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec x_refsource_MISCPatchThird Party Advisory
- https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965
- https://nvd.nist.gov/vuln/detail/CVE-2020-7795
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 x_refsource_MISCExploitPatchThird Party Advisory
- https://www.npmjs.com/package/get-npm-package-version/v/1.0.6 x_refsource_MISCRelease NotesThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-4h66-vghf-xg5x | Advisory | |
| https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js#L17 | ||
| https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17 | x_refsource_MISCBroken Link | |
| https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2dec | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/hoperyy/get-npm-package-version/commit/49459d4a3ce68587d48ffa8dead86fc9ed58e965 | ||
| https://nvd.nist.gov/vuln/detail/CVE-2020-7795 | ||
| https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390 | x_refsource_MISCExploitPatchThird Party Advisory | |
| https://www.npmjs.com/package/get-npm-package-version/v/1.0.6 | x_refsource_MISCRelease NotesThird Party Advisory |
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner snyk
Published Aug 2, 2022
Updated Sep 16, 2024
Reserved Jan 21, 2020
Link CVE-2020-7795
CISA Vulnrichment
GHSA-4H66-VGHF-XG5X Updated n/a