open npm package: OS command injection via PowerShell on Windows
The npm package open (versions 7.2.0 to before 11.0.0) can execute PowerShell code on Windows and WSL when crafted URLs are passed to it. Attackers can embed $(...) subexpressions in URLs, for example OAuth authorization_endpoint values from malicious MCP servers, which run when the package passes them unescaped to PowerShell. Exploitation requires a user to open or process such a URL, for example by connecting to a malicious MCP server.
sindresorhus · open
