A newly identified 253 verified security bugs affecting 343 AI agent tools across 118 open-source Model Context Protocol (MCP) servers, exposing failures in how software handles arguments generated by large language models.
The findings come from an evaluation of ToFu, a tool-aware fuzzing framework designed to detect security violations that conventional crash-based testing can miss.
The evaluated corpus included 273 reachable MCP servers and 3,405 extracted tools, though researchers could exercise only a subset.
Researchers Find 253 Security Bugs
arXiv initially recorded 508 candidate bugs, then removed 103 non-vulnerable findings and 152 duplicates through manual review. A single underlying bug can affect multiple tools, which explains why the affected tool count exceeds the verified bug total.
The research focuses on the trust boundary between an LLM, its orchestration layer, and the software that executes tool calls. A request can satisfy an input schema while still violating security requirements described in the tool’s documentation.
For example, a string accepted as a workspace file path may resolve outside the authorized directory. arXiv also demonstrated a “Repeat-After-Me” technique across six orchestration frameworks: LangGraph, Microsoft Agent Framework, Google ADK 2.0, AutoGen, Strands, and CrewAI.

In the evaluated configurations, attacker-supplied text specifying a tool and arguments could become an executable invocation when repeated by the model. Schema compliance therefore did not establish the request’s trustworthiness.
Rather than relying on successful prompt manipulation for every test, ToFu directly challenges tool implementations with adversarial, schema-valid arguments. This separates vulnerability discovery from how an attacker delivers those arguments through an agent.
ToFu repurposes tool descriptions, argument names, and schemas into security specifications. Its corpus contains 74 semantics-aware sanitizers guided by Common Weakness Enumeration categories.
An LLM selects relevant checks and generates initial fuzzing seeds, but does not judge whether an execution is vulnerable. The framework uses coverage-guided mutation with Atheris and checks executions through runtime introspection or outcome-based oracles.
Python runtime tracers observe filesystem, process, and network operations, while outcome checks assess whether tools reject prohibited inputs or return appropriate safe fallbacks. These mechanisms can flag unsafe operations even when a tool completes normally.
The verified findings included 115 reflected-output bugs, 64 path-traversal flaws, 58 log-injection issues, seven server-side request forgery vulnerabilities, five data-exfiltration bugs, three operating-system command-injection flaws, and one leftover temporary-file issue.
Reflected output was not automatically equivalent to exploitable cross-site scripting; impact depended on whether downstream software rendered the content unsafely.
In one case study, the screenshot-page tool in webpage-screenshot-mcp accepted file URLs and returned images of readable local files or directory listings. Its URL parser validated syntax, but navigation passed directly to a browser without enforcing the advertised webpage boundary.
The standard 60-second fuzzing budget found 231 verified bugs; deeper testing uncovered another 22. However, missing credentials, unavailable backends, and startup failures limited runtime reachability, while static analysis remained useful for issues outside observable execution behavior.
The findings point to implementation weaknesses in tested servers, not proof of compromise across deployed environments.
The researchers argue that tool metadata should become an enforceable security contract. Implementations must independently validate model-generated arguments instead of delegating security to the LLM.
Their evaluation also documented tools affecting files, terminal sessions, and processes outside intended boundaries, reinforcing the need to sandbox security testing.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team