CVE-2026-10144: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in web-infra-dev rsbuild
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.
AI Analysis
Technical Summary
The vulnerability exists in the openBrowser() function of rsbuild (web-infra-dev project) prior to version 2.0.9. This function uses encodeURI() on a URL before embedding it into a shell command executed by child_process.exec(). However, encodeURI() does not encode shell metacharacters such as $, (), and ;, which are evaluated by /bin/sh. This improper neutralization of special elements leads to OS command injection, enabling attackers to execute arbitrary commands on the affected system when supplying a crafted URL to the server.open configuration on macOS.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary operating system commands with the privileges of the rsbuild process on macOS. This can lead to system compromise, data theft, or further attacks depending on the privileges of the process. The CVSS 4.0 score is 7.1 (high), reflecting the potential for significant impact with low attack complexity but requiring user interaction.
Mitigation Recommendations
A fix is available in rsbuild version 2.0.9 and later. Users should upgrade to version 2.0.9 or above to remediate this vulnerability. Until patched, avoid exposing the vulnerable functionality to untrusted input or untrusted users. Patch status is confirmed by the affectedVersions field indicating versions before 2.0.9 are vulnerable.
CVE-2026-10144: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in web-infra-dev rsbuild
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.
CVSS v4.0
Score 7.1high
Affected software
web-infra-dev
rsbuild
Run 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
The vulnerability exists in the openBrowser() function of rsbuild (web-infra-dev project) prior to version 2.0.9. This function uses encodeURI() on a URL before embedding it into a shell command executed by child_process.exec(). However, encodeURI() does not encode shell metacharacters such as $, (), and ;, which are evaluated by /bin/sh. This improper neutralization of special elements leads to OS command injection, enabling attackers to execute arbitrary commands on the affected system when supplying a crafted URL to the server.open configuration on macOS.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary operating system commands with the privileges of the rsbuild process on macOS. This can lead to system compromise, data theft, or further attacks depending on the privileges of the process. The CVSS 4.0 score is 7.1 (high), reflecting the potential for significant impact with low attack complexity but requiring user interaction.
Mitigation Recommendations
A fix is available in rsbuild version 2.0.9 and later. Users should upgrade to version 2.0.9 or above to remediate this vulnerability. Until patched, avoid exposing the vulnerable functionality to untrusted input or untrusted users. Patch status is confirmed by the affectedVersions field indicating versions before 2.0.9 are vulnerable.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-29T22:17:43.223Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aa9b95555bf5e2cf56789e6
Added to database: 09/15/2026, 21:32:05 UTC
Last enriched: 09/15/2026, 21:46:34 UTC
Last updated: 09/15/2026, 22:11:28 UTC
Views: 4
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.