open command execution in Windows URL handling
sindresorhus open · modelcontextprotocol inspector · anomalyco opencode
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sindresorhus open |
| No fix yet |
| modelcontextprotocol inspector |
| No fix yet |
| anomalyco opencode |
| No fix yet |
Original 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.