{"id":"CVE-2026-25244","published":"2026-05-18T20:31:14Z","modified":"2026-07-23T12:07:59Z","title":"WebdriverIO has Command Injection in the BrowserStack Service","vendor":"webdriverio","product":"webdriverio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03308,"percentile":0.88856,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/webdriverio/webdriverio/security/advisories/GHSA-5c46-x3qw-q7j7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/webdriverio/webdriverio/blob/ea0e3e00288abced4c739ff9e46c46977b7cdbd2/packages/wdio-browserstack-service/src/testorchestration/helpers.ts#L204","tags":["x_refsource_MISC"]},{"url":"https://github.com/webdriverio/webdriverio/releases/tag/v9.24.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25244","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479692","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25244.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":17.77},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"webdriverio","affectedVersions":[{"vendor":"webdriverio","product":"webdriverio","versions":["< 9.24.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-19T12:58:08.253081Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@wdio/browserstack-service","vulnerableRanges":["<9.24.0"],"patched":["9.24.0"],"from":["GHSA-5c46-x3qw-q7j7"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-30805","exploited":false,"provenance":"source"},"summary":{"text":"The WebdriverIO test automation framework's BrowserStack service, in versions below 9.24.0, passes Git branch names unsanitized into shell execution calls during test orchestration, so branch names containing shell metacharacters are interpreted as commands. An attacker can trigger arbitrary code execution by supplying a malicious repository, via the runSmartSelection source setting or the current directory when that setting is unset, whose branch name carries a payload; no authentication or user interaction is indicated, though the victim's test run must process that repository.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:02:22Z"}}