CVE-2022-29080
JavaScript vulnerability analysis and mitigation

Overview

The npm-dependency-versions package through version 0.3.0 for Node.js contains a command injection vulnerability. The vulnerability exists because the package fails to properly sanitize the 'pkgs' parameter before passing it to a command execution API, allowing attackers to execute arbitrary commands if they can control the input (GitHub Issue, NVD).

Technical details

The vulnerability is classified as a command injection flaw (CWE-78) related to improper neutralization of special elements used in an OS command. The issue has a CVSS v3.1 base score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The vulnerability can be triggered by calling the dependencyVersions function with a JSON object containing shell metacharacters in the 'pkgs' value (NVD).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary commands on the system where the package is running. Given the CVSS score of 9.8, this indicates the potential for complete system compromise with high impacts on confidentiality, integrity, and availability (NVD).

Mitigation and workarounds

Users should upgrade to a version newer than 0.3.0 if one is available. If upgrading is not possible, users should carefully validate and sanitize any input passed to the dependencyVersions function, particularly the 'pkgs' parameter, to prevent command injection attacks (NPM Package).

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-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • nodejs-full-i18n
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

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