Command Injection in local-devices

local-devices Updated 02 Oct 2025

Summary

03/09/2020
HIGH
Yes i
High
Not published

GHSA-w725-67p7-xv22: Command Injection in local-devices. Affects local-devices versions < 3.0.0. Fixed in 3.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The local-devices package is an npm package used for retrieving information about devices connected to a local network. It provides functionality to discover and list IP addresses of devices on the network. However, versions prior to 3.0.0 are vulnerable to Command Injection.

Vulnerability Detail

The vulnerability in local-devices arises from the package's failure to validate input on IP addresses. This allows an attacker to inject arbitrary commands into the system by manipulating the IP address input. By exploiting this vulnerability, an attacker can execute unauthorized commands on the target system, potentially leading to unauthorized access, data breaches, or other malicious activities.

How To Fix

Minimum fixed version

3.0.0

This is the first release that contains the fix.

npm install local-devices@3.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. Upgrading to the fixed version is the recommended solution.

Conclusion

The local-devices package prior to version 3.0.0 is vulnerable to Command Injection. It is crucial to upgrade to the fixed version to mitigate the risk of unauthorized command execution. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for local-devices →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary commands on the target system, potentially leading to unauthorized access, data breaches, or other malicious activities.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using package-lock.json.

No specific workaround is mentioned for this vulnerability. It is recommended to upgrade to the fixed version of the local-devices package.

There are no known instances of this vulnerability being exploited at the time of this advisory.

This vulnerability was discovered and reported by the GitHub Security Lab.

How To Fix

Minimum fixed version

3.0.0

This is the first release that contains the fix.

npm install local-devices@3.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback