Research · Finding · published · Boston Identity
BI-FIND-2025-0382
SonarQube flagged 42 of the 583 MCP servers analysed, and half of those 42 for exposed credentials such as API keys left in the code.
SonarQube, a general-purpose code scanner, flagged 277 vulnerabilities in 42 of the 583 servers the authors analysed (7.2%), and half of those 42 were flagged for exposed credentials, such as OpenAI and Gemini API keys and Google Cloud service-account keys left in the code (3.6% of the 583). The smaller access-control and authentication groups (1.4% and 0.5%) collect rules on restricting service-account permissions, avoiding wildcard RBAC permissions, scoping AWS IAM policies and signing JWTs; the study does not test how a server authorizes its callers. None of the 61 official integrations was flagged, and all five servers with more than five flags were existing projects that had added MCP as a feature. The authors say so low a rate more likely points to under-detection by current tools, so we read these counts as a floor.
SourceModel Context Protocol (MCP) at First Glance: Studying the Security and Maintainability of MCP Servers · arXiv · · read
About Model Context Protocol, Common Weakness Enumeration, AI trust and Non-human identity.
From the briefing
Six Queen's University researchers collected 1,899 open-source MCP servers in March 2025 and analysed the 583 with ten or more GitHub stars. SonarQube flagged a vulnerability in 7.2% of those, half of them for exposed credentials, and none in the 61 official integrations. Invariant Labs' mcp-scan, which reads tool descriptions, ran on 73 servers and flagged possible tool poisoning in 5.5% of them.
Paper · arXiv · Mohammed Mehedi Hasan; Hao Li; Emad Fallahzadeh; Gopi Krishnan Rajbahadur; Bram Adams; Ahmed E. Hassan, Queen’s University · Jun 16, 2025 · source
Evidence
The passages this finding cites, on the briefing page.
How to cite
Boston Identity. "A code scanner's top find in 583 MCP servers was hard-coded keys; tool poisoning needed an MCP-specific scanner," BI-FIND-2025-0382. IAM Insights, October 20, 2026. https://insights.bostonidentity.com/ref/BI-FIND-2025-0382
© 2026 Boston Identity LLC. All rights reserved. Quote up to 100 words with the credit Boston Identity, IAM Insights and a link. How to cite · Terms
Was this claim useful?