CVE-2026-49143

BrowserStack Runner 0.9.5 Unauthenticated RCE via /_log HTTP Handler

Published Jun 2, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
BrowserStack Runner through 0.9.5 contains a remote code execution vulnerability in the /_log HTTP handler that allows unauthenticated network-adjacent attackers to execute arbitrary code by submitting crafted JSON request bodies to the handler, which passes user-supplied data to vm.runInNewContext() combined with eval(). Attackers can escape the Node.js vm sandbox by leveraging a host-context Function reference through util.format to access the host process via this.constructor.constructor, achieving full remote code execution on the underlying system without any authentication.

Analysis

AI-generated

Technical impact

BrowserStack Runner versions up to 0.9.5 expose the "/_log" HTTP handler to unauthenticated remote code execution. The flaw allows an attacker to craft a JSON request that is forwarded directly to the Node.js VM sandbox via vm.runInNewContext() combined with eval(). By leveraging a host‑context Function reference through util.format, attackers can escape the sandbox and obtain a reference to the host process, ultimately executing arbitrary code on the underlying system.

Affected Systems

All installations of BrowserStack Runner running version 0.9.5 or earlier are affected. The vulnerable component is the "_/log" HTTP handler provided by the BrowserStack Runner server.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability. Attackers with network access adjacent to the host can exploit the flaw without any authentication, by submitting a specially crafted JSON payload to the vulnerable endpoint. Because the EPSS is not available and the issue is not listed in the CISA KEV catalog, the exact exploitation probability is unknown, but the critical nature of the flaw and the lack of authentication requirements make it a high‑risk target for attackers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest BrowserStack Runner update that removes the vulnerable code in the "/_log" handler.
  • If an immediate upgrade is not feasible, restrict network access to the "/_log" endpoint using firewall rules or equivalent network segmentation to prevent unauthenticated access.
  • Review the application’s input handling to ensure that eval() and vm.runInNewContext() are not exposed to untrusted data, and consider removing or sanitizing these calls in any custom deployment.

Generated by OpenCVE AI on June 3, 2026 at 04:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6vr3-7wcx-v5g5 browserstack-runner vulnerable to Remote Code Execution via vm sandbox escape in _log HTTP handler
History
Type Values Removed Values Added
First Time appeared Browserstack browserstack-local
CPEs cpe:2.3:a:browserstack:browserstack-local:*:*:*:*:*:node.js:*:*
Vendors & Products Browserstack browserstack-local
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Browserstack
Browserstack browserstack-runner
Vendors & Products Browserstack
Browserstack browserstack-runner
Type Values Removed Values Added
Description BrowserStack Runner through 0.9.5 contains a remote code execution vulnerability in the /_log HTTP handler that allows unauthenticated network-adjacent attackers to execute arbitrary code by submitting crafted JSON request bodies to the handler, which passes user-supplied data to vm.runInNewContext() combined with eval(). Attackers can escape the Node.js vm sandbox by leveraging a host-context Function reference through util.format to access the host process via this.constructor.constructor, achieving full remote code execution on the underlying system without any authentication.
Title BrowserStack Runner 0.9.5 Unauthenticated RCE via /_log HTTP Handler
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:04 PM
Reserved
May 27, 2026, 5:40 PM
Status
Deferred
Published
Jun 2, 2026, 9:16 PM
Modified
Oct 8, 2026, 4:17 PM