Description
open 7.2.0 before 11.0.0 contains an OS command injection vulnerability that allows attackers to execute PowerShell code by supplying crafted URLs on Windows and WSL. Attackers can embed $(...) subexpressions in URLs, such as OAuth authorization_endpoint values from malicious MCP servers, which execute when index.js passes them unescaped to powershell -EncodedCommand.
Severity (CVSS)
| Base score | 7.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| sindresorhus | open | 7.2.0 to <11.0.0 [affected] |
| modelcontextprotocol | inspector | 2.0.0 to <2.12.0 [affected] |
| anomalyco | opencode | 1.0.137 to <1.18.33 [affected] |
References
- https://github.com/sindresorhus/open/commit/274d70446bf38a7b7d50b214dd3962ef8ea9320d (patch)
- https://github.com/sindresorhus/open/releases/tag/v11.0.0 (release-notes)
- https://github.com/sindresorhus/open/blob/v10.2.0/index.js#L189-L203 (technical-description)
- https://github.com/sindresorhus/open/blob/v7.2.0/index.js#L60-L99 (technical-description)
- https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-q978-78c7-phqw (vendor-advisory)
- https://github.com/anomalyco/opencode/pull/51414 (patch issue-tracking)
- https://github.com/anomalyco/opencode/commit/29f07e0c69ad8668e0e15b0eb54f2fcb342af98c (patch)
- https://www.vulncheck.com/advisories/open-7.2.0-before-11.0.0-os-command-injection-via-powershell-on-windows (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 30 Oct 2026 07:06 UTC.