CVE-2025-57283: The Node.js package browserstack-local 1.5.8 contains a command injection vulnerability.
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.
Security readout for executives and security teams
Plain-English summary
browserstack-local 1.5.8 has a command injection flaw tied to unsafe handling of the logfile variable. If an attacker with local low-privilege access can influence that value, they may execute commands with the process privileges. The source bundle does not name a fixed version or vendor mitigation.
Executive priority
Treat as high priority where BrowserStack Local runs in shared developer, CI, or build environments. The business risk is stronger when low-privileged users can influence job configuration or filesystem paths.
Technical view
The CVE describes improper sanitization of logfile in lib/Local.js, mapped to CWE-78 and CWE-94. CVSS 3.1 is 7.8: local attack vector, low complexity, low privileges, no user interaction, and high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is most likely in development, CI, QA, or test automation environments that use browserstack-local 1.5.8 and allow untrusted or low-privileged users to control logfile configuration.
Exploitation context
The source bundle does not indicate CISA KEV listing or active exploitation. The stated attack path is local, requires low privileges, and does not require user interaction. Evidence is incomplete on public exploit maturity and real-world targeting.
Researcher notes
The provided CVE data identifies the vulnerable variable and file but does not provide a patch reference, affected CPEs, or complete product metadata. Validate package provenance and fixed-version status directly from npm or maintainer guidance.
Mitigation direction
Inventory projects and CI images for browserstack-local 1.5.8.
Check npm and vendor guidance for a fixed or recommended version.
Avoid passing untrusted input into the logfile option.
Restrict local access to systems running BrowserStack Local jobs.
If no fix is available, evaluate temporary removal or isolation.
Validation and detection
Review package lockfiles and dependency manifests for browserstack-local 1.5.8.
Inspect CI and test configurations for logfile usage.
Confirm whether logfile values can be influenced by users or pipeline variables.
Review endpoint telemetry for unexpected child processes during BrowserStack Local runs.
Track Red Hat, CVE, npm, and referenced advisory updates.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.