CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2026-25244

Critical · CVSS 9.8

WebdriverIO — Command Injection / Remote Code Execution (OS Command Injection via unsanitized git branch name in execSync)

CVSS
9.8
nvd
EPSS
2.76%
85th pct
KEV
No
Class
oss containerizable
CWE-78, CWE-78

Description

WebdriverIO is a test automation framework for unit, e2e and component testing using WebDriver, WebDriver BiDi and Appium. Versions below 9.24.0 contain a command injection vulnerability leading to remote code execution (RCE) in test orchestration. Git permits branch names containing shell metacharacters, and getGitMetadataForAISelection() interpolates these names directly into execSync() calls without sanitization. An attacker can exploit this by supplying a malicious repository (via testOrchestrationOptions.runSmartSelection.source, or the current directory if unset) whose branch name carries a payload, causing the shell to execute arbitrary code. This enables remote code execution on CI/CD servers and developer machines, leading to credential and secret disclosure, source code and SSH key exfiltration, system compromise, and supply chain attacks via tampered build artifacts. The issue has been fixed in version 9.24.0.

Search profile — drives PoC discovery

Symbols getGitMetadataForAISelectionexecSynctestOrchestrationOptionsrunSmartSelectionsourcewdio-browserstack-servicetestorchestration/helpers.tsgetGitMetadataForAISelection()
Keywords CVE-2026-25244WebdriverIO command injectionWebdriverIO RCEgetGitMetadataForAISelection execSyncwdio-browserstack-service command injectionWebdriverIO git branch injectionWebdriverIO testOrchestrationOptions exploitGHSA-5c46-x3qw-q7j7WebdriverIO 9.24.0 vulnerability
Versions: below 9.24.0

Affected packages

npm @wdio/browserstack-service 0 → 9.24.0

References

Status: enriched · ingested 2026-06-30T06:00:22.000Z · profiled 2026-07-01T00:30:14.000Z