npx runs whatever version is latest
Medium unpinned-npx
Without an exact version, npx downloads the newest release each time the client starts. A compromised or broken release reaches you without any review, with the access you gave the server.
Why it matters
npx -y package downloads and runs the newest version of the package each time the client starts, without asking. Most MCP servers are young packages maintained by one person; a hijacked maintainer account, a compromised dependency or a simple breaking release reaches you the next morning, with the access you gave the server (tokens, files, shell).
How to fix it
Pin the exact version you reviewed (package@1.2.3), and update it on purpose.
Write the exact version you reviewed: npx -y @playwright/mcp@0.0.41. Update deliberately, reading the changelog, the same way you update a lockfile. A version range (^1.2.0) is not a pin.
Before
"args": ["-y", "@playwright/mcp"]
After
"args": ["-y", "@playwright/mcp@0.0.41"]
Applies to every MCP client that reads a JSON config: Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and others.
Other checks
Related free tools
Published ; awaiting review.