Vulnerability DatabaseGHSA-w725-67p7-xv22

GHSA-w725-67p7-xv22
JavaScript vulnerability analysis and mitigation

Overview

A command injection vulnerability was discovered in the local-devices npm package affecting versions prior to 3.0.0. The vulnerability was identified and tracked as GHSA-w725-67p7-xv22, with a high severity rating. The issue was discovered in July 2019 and was published to the GitHub Advisory Database on September 3, 2020. The vulnerability affected the package's IP address validation functionality, potentially exposing systems to command injection attacks (GitHub Advisory).

Technical details

The vulnerability stems from insufficient input validation on IP addresses in the package's 'find' API. The package directly concatenated user input into an exec call without proper validation, allowing attackers to inject arbitrary system commands. The issue was classified as CWE-77 (Command Injection) and received a high severity rating. The vulnerability could be demonstrated using inputs like '127.0.0.1 | mkdir attacker' which would execute unauthorized commands on the host system (GitHub PR).

Impact

The vulnerability could allow attackers to execute arbitrary commands on the host system where the local-devices package is implemented. This could potentially lead to system compromise, data breach, or unauthorized system modifications (GitHub Advisory).

Exploitability

The vulnerability was easily exploitable by passing maliciously crafted IP addresses to the find API function. An attacker could inject system commands by including shell command operators along with IP addresses, as demonstrated in the proof of concept: 'var userInput = '127.0.0.1 | mkdir attacker'; find(userInput);' (GitHub PR).

Mitigation and workarounds

The vulnerability was patched in version 3.0.0 of the local-devices package. The fix implements proper IP address validation before executing commands. Users are strongly recommended to upgrade to version 3.0.0 or later. The patch validates IP addresses using both IPv4 and IPv6 format checks before proceeding with command execution (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-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 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