Home / News EN / MCP and AI Agents: Data Security Risks for Users

MCP and AI Agents: Data Security Risks for Users

MCP AI agent security. According to a newly published study, a malicious command can pass from one artificial intelligence agent to another by exploiting the trust they place in each other. The tests raise doubts about the security of integrations built on the Model Context Protocol (MCP) and show what risks databases and confidential data face.

MCP AI agent security
Foto: shock264 / Flickr, licenza CC BY

The tests were carried out by independent researcher Syed Anas Mohiuddin. His demonstration attacks use the trust between software components to run harmful instructions. Possible consequences include unauthorized network requests and the theft of company or personal information.

MCP AI agent security: why it matters

MCP was born as an open standard for the artificial intelligence world. It works as a universal bridge between language models and external resources. Thanks to a common architecture, AI agents talk in a uniform way with programs, databases, APIs and local environments. This lets them find information, exchange context and carry out actions inside even complex workflows.

Mohiuddin explains that the attack starts from a specialized agent, for example one that translates texts or analyzes data. If this agent mistakes hostile content for an order to execute and passes it on, the next one may accept it because it trusts whoever sent it. The internal handoff thus gives a legitimate look to a request steered by the attacker.

It is a form of prompt injection that takes advantage of how agents divide the work. In the cases described, the defenses of the specialized components are weak or missing. A command that the AI itself would have refused therefore finds another path into the system. The weak point lies in the moment when one agent hands over a task and the next one trusts where the request comes from.

Mohiuddin examined the agents of several organizations: Google, JPMorgan Chase, Rapid7, the French interministerial digital directorate and the US federal government. The list only says where the tests were done. It does not prove that every environment can be attacked in the same way. The material describes attack tests and vulnerabilities, not data thefts that actually happened at these organizations.

One of the consequences is server-side request forgery, or SSRF: the attacker convinces a server to send network requests it should not send. The manipulated instruction stops being mere text and becomes an operation carried out by a piece of the infrastructure.

What Changes and What Are the Effects

The way credentials are handled also matters. In the scenarios shown, MCP servers hold the agents’ credentials and the internal components regard one another as trustworthy. This way a hostile instruction can use access that is already present in the system. The possible effects reach the databases and the sensitive information handled by the applications.

A concrete confirmation comes from Google’s official repository. On June 18, 2026, a fix for SSRF was merged into mcp-toolbox, as reported by ArsTechnica. It resolves a serious vulnerability in the HTTP source and credits Mohiuddin with the report. The fix introduces SSRFGuard, a defense against DNS rebinding attacks, and adds options to manage access to private networks and to list allowed or blocked IP ranges. It also checks the base URL right away, so an unsafe configuration is rejected at startup.

The change concerns the software that sends the requests. The protection must kick in even when an agent has already processed and forwarded the instruction. The case teaches a useful distinction: the defenses of the model and those of the connected services protect different moments of the same operation.

The results cast doubt on automatic trust between components, but they do not say that every MCP implementation is vulnerable. What counts are the defenses in place, the access keys within reach and the tasks each agent can pass on to others.

* Content created with the assistance of artificial intelligence systems.