2026-07-22 · 2026-Q3
Azure DevOps MCP Server Lets Hidden PR Comments Hijack AI Review Agents
Who actually said "do this"?
- Fixable
- Vendor patch
- Vendor response
- Unknown
- In the wild
- No
- Actor
- Attacker
Target
Microsoft's official Azure DevOps MCP server (tested at v2.7.0; v2.8.0 was current as of June 24, 2026), driving agents including GitHub Copilot CLI and Claude Code
Impact
An attacker with write access to a single project plants an HTML comment in a pull request description. The comment is invisible in the Azure DevOps web interface but is returned verbatim by the API, so when a reviewer asks an AI agent to review the PR, the hidden text rewrites the agent's objectives. The agent then acts with the reviewer's credentials, reaching projects the attacker has no rights to and quietly returning source code, secrets, and work items. No fixed release was available at disclosure and no exploitation outside the researchers' testing was reported
Root cause
Microsoft applied a spotlighting defense that wraps untrusted content via a `createExternalContentResponse` helper, but the pull request retrieval path `repo_get_pull_request_by_id` never calls it, so PR descriptions reach the model unwrapped. The defense existed and was simply not applied consistently across tools. Reported by Manifold Security
Sources
Catalog
Cite this: AgentProv incident record: Azure DevOps MCP Server Lets Hidden PR Comments Hijack AI Review Agents (2026-07-22). https://agentprov.com/incidents/2026-07-22-azure-devops-mcp-server-lets-hidden-pr-comments-hijack-ai-review-agents
Related
- Also L2 · 2026-10-15Datadog: Counterfeit Policy Text Collapses an Injection Classifier's Recall and Pushes a LangChain Risk Gate Under Its Block ThresholdL2Instruction
- Also L2 · 2026-10-08Cisco Talos: Four Malware Families Carry Instructions Aimed at the LLMs That Triage ThemL2Instruction
- Also L2 · 2026-10-07Barracuda: Phishing Emails Carry Hidden Prompt Injections for the Recipient's AI Inbox AssistantL2Instruction