MCP Inspector tool-output regex can freeze the user interface
A malicious server can advertise a computationally expensive pattern in a tool output schema. Synchronous validation of a returned result then monopolizes the interface thread.
A malicious server can advertise a computationally expensive pattern in a tool output schema. Synchronous validation of a returned result then monopolizes the interface thread.
This is a maintainer-documented vulnerability disclosure. The advisory lists affected ranges: @modelcontextprotocol/inspector >= 2.0.0, <= 2.13.0; @modelcontextprotocol/inspector <= 1.0.3. Patched release lines: @modelcontextprotocol/inspector 1.0.4; @modelcontextprotocol/inspector 2.14.0. Consult the specific advisory for configuration requirements and branch coverage.
Takeaway
Use a patched release on a supported branch and verify the relevant browser, process or session boundary. Keep untrusted MCP endpoints and imported configurations outside privileged runtime contexts.