Description
Rsbuild before 2.0.9 contains a command injection vulnerability that allows attackers to execute arbitrary OS commands by supplying a crafted URL containing shell metacharacters to the server.open configuration on macOS. The openBrowser() function in packages/core/src/server/open.ts passes the URL through encodeURI() before interpolating it into a shell command executed via child_process.exec(), but because encodeURI() does not encode dollar signs, parentheses, or semicolons, embedded shell metacharacters are evaluated by /bin/sh, enabling arbitrary command execution.
Published: 2026-09-15
Score: 7.1 High
EPSS: 1.6% Low
KEV: No
Impact: Remote Command Execution
Action: Apply Patch
AI Analysis

Impact

Rsbuild versions prior to 2.0.9 include a command injection flaw that allows an attacker to execute arbitrary operating system commands on macOS by providing a specially crafted URL to the server.open configuration. The openBrowser() routine passes the URL through encodeURI() before embedding it into a shell command that is executed with child_process.exec(). Because encodeURI() does not escape characters such as dollar signs, parentheses or semicolons, these shell metacharacters are interpreted by /bin/sh, giving the attacker the ability to run with CWE‑78 – System Command Injection.

Affected Systems

Affected vendor and product is Rsbuild from the web‑infra‑dev group. The vulnerability exists in all releases before 2.0.9, i.e., Rsbuild 1.x and 2.0.0 through 2.0.8. Precise version ranges are confirmed by the advisory commit and release notes available on GitHub.

Risk and Exploitability

The CVSS score is 7.1, indicating a high level of severity. The EPSS score of 2 % suggests a moderate likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to inject a crafted URL into the server.open configuration, which is typically achievable by a developer or a local attacker with access to the development environment. Once injected, the attacker can run arbitrary shell commands with the privileges of the user running the Rsbuild process.

Generated by OpenCVE AI on September 16, 2026 at 19:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Rsbuild to version 2.0.9 or later to apply the vendor's fix.
  • Re‑examine any custom or external URLs used in or sanitize those containing shell metacharacters the openBrowser() implementation to escape shell‑specific characters or change child_process.exec() to a safer API such as child_process.spawn with the shell option disabled.
  • Conduct a code audit for any remaining uses of child_process.exec() that accept external input.

Generated by OpenCVE AI on September 16, 2026 at 19:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 15 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Description Rsbuild before 2.0.9 contains a command injection vulnerability that allows attackers to execute arbitrary OS commands by supplying a crafted URL containing shell metacharacters to the server.open configuration on macOS. The openBrowser() function in packages/core/src/server/open.ts passes the URL through encodeURI() before interpolating it into a shell command executed via child_process.exec(), but because encodeURI() does not encode dollar signs, parentheses, or semicolons, embedded shell metacharacters are evaluated by /bin/sh, enabling arbitrary command execution.
Title Rsbuild < 2.0.9 Command Injection via openBrowser() URL Handling
Weaknesses CWE-78
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-15T21:01:07.742Z

Reserved: 2026-05-29T22:17:43.223Z

Link: CVE-2026-10144

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-15T22:16:55.387

Modified: 2026-09-15T22:16:55.387

Link: CVE-2026-10144

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-16T20:00:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')