CVE-2026-10144

Rsbuild < 2.0.9 Command Injection via openBrowser() URL Handling

Published Sep 15, 2026 CVSS 4.0 · 7.1 High EPSS 1.7% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 18, 2026 at 11:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Web-infra-dev
Web-infra-dev rsbuild
Vendors & Products Web-infra-dev
Web-infra-dev rsbuild
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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 26, 2026, 1:29 PM
Reserved
May 29, 2026, 10:17 PM
Status
Deferred
Published
Sep 15, 2026, 10:16 PM
Modified
Sep 23, 2026, 5:17 PM