MCP Inspector 2.14.0 import preview does not show environment values; importing an untrusted server.json and starting it can lead to code execution
The import preview in MCP Inspector 2.14.0 shows only environment variable names, not values, and a malicious server.json can exploit this to execute code; it was fixed in 2.15.0. The advisory (GHSA-pp85-586h-2m95) states that when the web client imports server.json, the default/value of environmentVariables is copied verbatim into the saved configuration, and environment variables such as NODE_OPTIONS and npm_config_registry can change what an apparently unchanged command actually executes, for example running attacker code before npx pulls any package, or pulling packages from an attacker-controlled registry, ultimately executing code as the user on the machine running the Inspector backend. The advisory also notes that the isSecret flag is not used by the import panel, and secret default values in a shared server.json are displayed in plaintext.
Users who import third-party server.json files through MCP Inspector can use this to understand the code execution risk of a preview that shows only variable names, and the fixed version.