---
id: CVE-2025-57283
title: >-
  The Node.js package browserstack-local 1.5.8 contains a command injection
  vulnerability
summary: >-
  The Node.js package browserstack-local 1.5.8 contains a command injection
  vulnerability. This occurs because the logfile variable is not properly
  sanitized in lib/Local.js.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-78
vendor: browserstack
product: browserstack-local
affected:
  - browserstack-local = 1.5.8
published: '2026-01-28'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-57283'
references:
  - url: 'https://gist.github.com/Dremig/b639c61541dd1482007dc7a5cd7fefb1'
    label: cve@mitre.org
  - url: 'https://www.npmjs.com'
    label: cve@mitre.org
  - url: 'https://access.redhat.com/security/cve/CVE-2025-57283'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2433928'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-57283.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.0081
epssPercentile: 0.55117
ingestedAt: '2026-06-30T17:40:12.482Z'
---

## Overview

The Node.js package browserstack-local 1.5.8 contains a command injection vulnerability. This occurs because the logfile variable is not properly sanitized in lib/Local.js.

## Affected

- `browserstack-local = 1.5.8`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
