CVE-2020-7795
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2020-7795 affects the npm package get-npm-package-version versions before 1.0.7. This Command Injection vulnerability was discovered in the main function of index.js and was disclosed on December 11, 2020, with publication following on January 20, 2021. The vulnerability was identified by the JHU System Security Lab (Snyk).

Technical details

The vulnerability is classified as a Command Injection (CWE-78) with a CVSS v3.1 base score of 9.8 (Critical) according to NVD, while Snyk rates it at 7.3 (High). The vulnerability has network attack vector (AV), low attack complexity (AC), requires no privileges (PR), and needs no user interaction (UI). The scope is unchanged, but it potentially affects confidentiality, integrity, and availability of the system (Snyk).

Impact

When exploited, this vulnerability could allow attackers to execute arbitrary commands on the system running the vulnerable package. The impact includes potential loss of confidentiality, integrity, and availability of the affected system, though the attacker's control over the extent of the impact may be limited (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade get-npm-package-version to version 1.0.7 or higher. The fix was implemented through adding input validation that checks for special characters using the regular expression /[`$&{}[;|]/g to prevent command injection attacks (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management