MCP and data-injection flaws let attackers hijack AI coding agents
Emerging Technology Risk · 6 sources · Updated 4mo ago · First seen Jul 15, 2026

Researchers and security firms disclosed multiple ways attackers can manipulate AI agents and coding assistants into exposing sensitive data or executing malicious actions. In one case, Invariant Labs showed GitHub integrations built on the Model Context Protocol (MCP) could be abused to access private repositories, while Adversa AI reported a two-click exploit in Cursor that can trick developers into installing a malicious MCP server through a deeplink argument-injection flaw and a misleading confirmation dialog. Because MCP servers run with the user’s privileges, a successful attack could lead to arbitrary command execution, theft of source code and secrets, and full compromise of a developer workstation.
Separate academic research found that AI agents can also be subverted through poisoned but trusted-looking data rather than explicit prompt injection. A study covered by Nature showed agents from OpenAI, Anthropic, and Google often accepted doctored datasets and altered README files, producing manipulated conclusions, while another paper introduced agent data injection (ADI), in which attackers tamper with fields such as sender names, button IDs, or tool history to trigger misclicks, unauthorized purchases, fraudulent merge approvals, or attacker-command execution. Researchers said current defenses remain weak because agents do not reliably distinguish trusted from untrusted data, although measures such as MCP allowlisting, randomized identifiers, and stronger provenance tracking can reduce risk.
Why it matters
Impact assessment
The immediate exposure is highest for organizations using AI coding agents with Azure DevOps MCP integrations, especially automated pull-request review workflows that let agents execute tools with reviewer privileges. Developer workstations and enterprise source-code environments using Cursor MCP servers are also exposed to workstation compromise, source-code theft, and secret exfiltration if users can be tricked into installing malicious MCP servers.
The severity is high because the described attacks can turn trusted AI workflows into confused-deputy channels for cross-project data access, pipeline execution, unauthorized code-review actions, and arbitrary command execution. Current reporting describes proof-of-concept demonstrations rather than confirmed broad in-the-wild exploitation, but the exposure is meaningful because the affected products are widely used and the attack preconditions align with common developer-assistant deployments.
Affected populations
- Organizations using Microsoft Azure DevOps MCP server for AI-assisted pull-request review, triage, summaries, or related workflows.
- Developers and security teams using Copilot CLI, Claude Code, or similar agents connected to Azure DevOps through MCP.
- Enterprises using Cursor AI with MCP server installation enabled.
- Research, engineering, and analyst teams relying on autonomous AI agents to interpret datasets or repository content.
- Vendors and users of agents from OpenAI, Anthropic, and Google exposed to agent data injection and poisoned-data workflows.
Severity and business consequences
- Confidentiality impact: exposure of private repositories, source code, secrets, work items, and wiki content.
- Integrity impact: manipulated merge decisions, fraudulent approvals, poisoned analytical conclusions, and attacker-influenced agent actions.
- Availability and operational impact: unauthorized pipeline execution, developer workstation compromise, and downstream incident response burden.
- Reputational and compliance impact: leakage of proprietary code or regulated data through AI-assisted workflows can trigger disclosure, legal, and customer-trust consequences.
Scope and exploitation status
- Azure DevOps MCP issue appears targeted but broadly applicable wherever attacker-controlled PR content is reviewed by an agent with broader permissions.
- Cursor deeplink/MCP-server issue is broadly relevant to developer populations because it relies on social engineering and local protocol handling.
- ADI and poisoned-data research indicate a wider systemic weakness across agent ecosystems rather than a single vendor defect.
- No public reporting in the provided sources confirms widespread in-the-wild exploitation of ADI; Azure DevOps MCP and Cursor reporting centers on researcher proof of concept.


