Command Injection Affecting @wdio/browserstack-service package, versions <9.23.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WDIOBROWSERSTACKSERVICE-16642116
  • published12 May 2026
  • disclosed11 May 2026
  • creditRavishanker Kusuma

Introduced: 11 May 2026

NewCVE-2026-25244  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @wdio/browserstack-service to version 9.23.3 or higher.

Overview

@wdio/browserstack-service is a WebdriverIO service for better Browserstack integration

Affected versions of this package are vulnerable to Command Injection via the getGitMetadataForAISelection function. An attacker can execute arbitrary commands on the host system by supplying a malicious git repository with a branch name containing shell command payloads, which are then interpolated into shell commands without sanitization.

CVSS Base Scores

version 4.0
version 3.1