CVSS Score: 8.8 Published: 2026-06-03 Full Report: https://cvereports.com/reports/CVE-2026-49143
An unauthenticated remote code execution (RCE) vulnerability exists in the browserstack-runner npm package (versions up to and including 0.9.5). The flaw lies in the /_log HTTP endpoint handler, which evaluates user-supplied input within a non-secure Node.js VM context combined with dynamic eval() execution. Network-adjacent attackers can exploit this behavior to escape the sandbox and execute arbitrary system commands on the host machine.
Unauthenticated remote code execution vulnerability in browserstack-runner <= 0.9.5 via a sandbox escape in the /_log HTTP handler.
- CWE ID: CWE-94: Improper Control of Generation of Code ('Code Injection')
- Attack Vector: Adjacent Network
- CVSS v3.1 Score: 8.8
- CVSS v4.0 Score: 8.7
- Exploit Status: poc
- KEV Status: Not Listed
- Impact: High (Complete Confidentiality, Integrity, and Availability Loss)
- Workstations running browserstack-runner configurations locally
- Continuous integration (CI/CD) runners executing automated cross-browser suites
- Local development servers utilizing browserstack-runner <= 0.9.5
- browserstack-runner: <= 0.9.5
- Avoid using Node.js standard vm modules or eval() routines to parse user-controlled input.
- Restrict HTTP listener bindings in lib/server.js to 127.0.0.1 instead of 0.0.0.0 to prevent adjacent network access.
- Introduce token-based session validation checks on the /_log endpoint to reject unauthenticated requests.
Remediation Steps:
- Open the file lib/server.js within the browserstack-runner installation directory.
- Locate the route definition mapping to the /_log handler.
- Replace the call to vm.runInNewContext() and eval() with a safe mapping function that stringifies or sanitizes arguments.
- Modify the HTTP listen configuration to specify host '127.0.0.1' rather than binding to all network interfaces.
- GitHub Security Advisory (GHSA-6vr3-7wcx-v5g5)
- VulnCheck Advisory Portal
- NVD Entry for CVE-2026-49143
- GitHub Project Repository
Generated by CVEReports - Automated Vulnerability Intelligence