Browserstack-Local Command Injection Vulnerability

Vulnerability

A command injection vulnerability has been identified in the Node.js package Browserstack-Local, specifically in version 1.5.8. The issue arises because the logfile variable is not adequately sanitized in the file lib/Local.js.

Impact

Exploitation of this vulnerability allows for command injection, where an attacker can execute arbitrary commands on the server running the affected package.

Reproduction

To reproduce this vulnerability, require the 'browserstack-local' package and create a new Local instance. Set the logfile property to a string that includes a command injection payload, such as a command to create a file. Then, call the startSync method to trigger the injection. This will execute the injected command and create the specified files in the current directory.

Added: Jan 28, 2026, 4:18 PM
Updated: Jan 28, 2026, 4:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.0
remediation
0.0
relevance
2.4
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.