WebdriverIO has Command Injection in the BrowserStack Service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| webdriverio | webdriverio | before 9.24.0 | 9.24.0 | Patch available | CNA |
| — | @wdio/browserstack-service (npm) | before 9.24.0 | 9.24.0 | Patch available | GHSA-5c46-x3qw-q7j7 |
- webdriverio Vendorwebdriverio Affected before 9.24.0 Fixed in 9.24.0 Patch available CNA
- @wdio/browserstack-service (npm) Vendor— Affected before 9.24.0 Fixed in 9.24.0 Patch available GHSA-5c46-x3qw-q7j7
Remediation
- Fix · CNA webdriverio (webdriverio) Fixed in 9.24.0
- Fix · GHSA-5c46-x3qw-q7j7 @wdio/browserstack-service (npm) Fixed in 9.24.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25244
- 2026-10-03 Alias added: GHSA-5c46-x3qw-q7j7
References
Sources
- CVE-2026-25244 · CVE Program
- CVE-2026-25244 · NVD
- FIRST EPSS
- GHSA-5c46-x3qw-q7j7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-25244 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences