Security readout for executives and security teams
Plain-English summary
CVE-2020-7795 affects the npm package get-npm-package-version before 1.0.7. The reported issue is command injection through its main function, meaning attacker-controlled input could cause unintended commands to run where the package is used. Business urgency depends on whether this package is present and reachable from untrusted input.
Executive priority
Prioritize remediation if the package appears in production, CI/CD, or internet-facing workflows. The package is small, so upgrading or removing it should usually be low effort compared with the risk of command execution.
Technical view
The source bundle identifies get-npm-package-version versions before 1.0.7 as vulnerable to command injection in index.js. CVSS 3.1 is 7.3 high with network attack vector, low complexity, no privileges, and no user interaction. The bundle names a fixing commit and version boundary, but does not provide operational exploit detail.
Likely exposure
Exposure is most likely in Node.js applications, build tools, or automation that directly or transitively depend on get-npm-package-version before 1.0.7 and pass untrusted input into the package.
Exploitation context
The CVE is not listed as KEV in the provided bundle. No cited source in the bundle establishes active exploitation in the wild. Treat exploitability as plausible based on the command injection classification and CVSS metadata, but verify local reachability.
Researcher notes
Evidence is limited to package-level advisory metadata, npm package reference, vulnerable source reference, and a fixing commit. Validate reachability before escalating severity beyond high. Do not assume active exploitation without additional threat intelligence.
Mitigation direction
- Upgrade get-npm-package-version to 1.0.7 or later.
- Regenerate lockfiles so vulnerable transitive versions are removed.
- Remove the package if it is no longer needed.
- Do not pass untrusted input into affected package code paths.
- Check upstream vendor guidance if upgrade constraints exist.
Validation and detection
- Search package.json and lockfiles for get-npm-package-version below 1.0.7.
- Check SBOM or dependency scanner output for CVE-2020-7795.
- Confirm production build artifacts use the patched dependency version.
- Identify application paths that call the package main function.
- Review whether any caller accepts external or user-controlled input.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
Execution behavior lookup
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupCVE-2020-7795 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 7.3 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P3.93.4Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
7.3HighVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
Source materials
- CVE List V5 sourceCVE List V5
- https://security.snyk.io/vuln/SNYK-JS-GETNPMPACKAGEVERSION-1050390CVE reference · x_refsource_MISC
- https://www.npmjs.com/package/get-npm-package-version/v/1.0.6CVE reference · x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/blob/338a5882298eb2c2194538db41166cae13c39e03/index.js%23L17CVE reference · x_refsource_MISC
- https://github.com/hoperyy/get-npm-package-version/commit/40b1cf31a0607ea66f9e30a0c3af1383b52b2decCVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
