CVE-2026-49143: Improper Control of Generation of Code ('Code Injection') in browserstack browserstack-runner
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.
AI Analysis
Technical Summary
CVE-2026-49143 is a remote code execution vulnerability in BrowserStack Runner (<=0.9.5) within the /_log HTTP handler. The handler processes user-supplied JSON data passed to vm.runInNewContext() combined with eval(), which is improperly controlled. Attackers can exploit this by crafting JSON requests that leverage a host-context Function reference via util.format to break out of the Node.js VM sandbox using this.constructor.constructor, achieving full remote code execution on the underlying system without any authentication or privileges.
Potential Impact
An unauthenticated, network-adjacent attacker can execute arbitrary code on the host running BrowserStack Runner, leading to full compromise of the underlying system. This includes the ability to run any commands or code with the privileges of the BrowserStack Runner process. The vulnerability has a high severity score of 8.7 (CVSS 4.0) reflecting the ease of exploitation and impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict network access to the BrowserStack Runner service to trusted users only and monitor for suspicious activity targeting the /_log endpoint. Avoid exposing this service to untrusted networks.
CVE-2026-49143: Improper Control of Generation of Code ('Code Injection') in browserstack browserstack-runner
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.
CVSS v4.0
Score 8.7high
Affected software
browserstack
browserstack-runner
pkg:npm/browserstack/browserstack-runnerpkg:github/browserstack-runnerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49143 is a remote code execution vulnerability in BrowserStack Runner (<=0.9.5) within the /_log HTTP handler. The handler processes user-supplied JSON data passed to vm.runInNewContext() combined with eval(), which is improperly controlled. Attackers can exploit this by crafting JSON requests that leverage a host-context Function reference via util.format to break out of the Node.js VM sandbox using this.constructor.constructor, achieving full remote code execution on the underlying system without any authentication or privileges.
Potential Impact
An unauthenticated, network-adjacent attacker can execute arbitrary code on the host running BrowserStack Runner, leading to full compromise of the underlying system. This includes the ability to run any commands or code with the privileges of the BrowserStack Runner process. The vulnerability has a high severity score of 8.7 (CVSS 4.0) reflecting the ease of exploitation and impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict network access to the BrowserStack Runner service to trusted users only and monitor for suspicious activity targeting the /_log endpoint. Avoid exposing this service to untrusted networks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-27T17:40:12.739Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a1f41c3e29bf47b5000d1a7
Added to database: 06/02/2026, 20:49:07 UTC
Last enriched: 08/15/2026, 13:45:36 UTC
Last updated: 09/13/2026, 10:01:31 UTC
Views: 153
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.