Skip to main content
LLM Security Database
Skip to research details
Back to Vulnerability List
LMVD-ID: 5f9a8525
Paper published March 23, 2026
Entry analyzed July 20, 2026
Severity: Not rated
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

MCP Tool-Metadata Prompt Injection in Coding Agents

The paper presents a controlled, reproducible evaluation in which untrusted MCP tool descriptions contain hidden instructions that attempt to induce coding agents to access files, invoke other tools, create deceptive…

BibTeX citation

Paper-evaluated models(4)

  • Claude Sonnet 4.5
  • Grok Code Fast 1
  • Gemini 2.5 Pro
  • Claude Opus 4

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary source plus a dedicated evidence section.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Ability to influence untrusted model inputs or connected content.
Related deployment categories
Agent workflows; Model Context Protocol; Coding agents
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Cursor 1.6.45 Claude Desktop for Windows 0.14.4 (39a52a) Claude Code 2.0.25 Cline VS Code Extension 3.34.0 Continue VS Code Extension 1.2.10 Gemini CLI 0.9.0 Langflow 1.7 MCP-enabled AI-assisted development tools that…

Research Paper

Are AI-assisted Development Tools Immune to Prompt Injection?

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Description

The paper presents a controlled, reproducible evaluation in which untrusted MCP tool descriptions contain hidden instructions that attempt to induce coding agents to access files, invoke other tools, create deceptive links, or execute remote scripts. The authors report that several clients accepted poisoned metadata without adequate validation or parameter visibility; Cursor 1.6.45 was reported unsafe across all four tested vectors. These are paper-reported results from isolated local tests, not independently verified findings.

Examples

See the primary source for the paper's evaluation and defensive reproduction context: https://arxiv.org/abs/2603.21642 (opens in a new tab)

Impact

Paper-reported impacts include unauthorized sensitive-file access, credential exposure through hidden tool parameters, silent logging of prompts and tool activity, deceptive-link creation, and remote script execution. Successful exploitation can compromise data confidentiality and workflow integrity when an MCP client treats server-provided metadata or tool output as trusted instructions.

Affected Systems

  • Cursor 1.6.45
  • Claude Desktop for Windows 0.14.4 (39a52a)
  • Claude Code 2.0.25
  • Cline VS Code Extension 3.34.0
  • Continue VS Code Extension 1.2.10
  • Gemini CLI 0.9.0
  • Langflow 1.7
  • MCP-enabled AI-assisted development tools that ingest untrusted tool metadata or outputs

Mitigation Steps

  • Treat MCP tool descriptions, schemas, metadata, and outputs as untrusted data; prevent them from changing instruction priority or system prompts.
  • Validate and scan tool descriptions before registration, and reject suspicious imperative instructions, priority claims, sensitive-path requests, or unexpected network actions.
  • Show complete tool names, arguments, parameter values, file paths, and destination URLs before execution; require explicit approval for sensitive operations.
  • Disable auto-approval and autonomous tool chaining, especially for filesystem, shell, network, and repository-write capabilities.
  • Run MCP servers and coding agents in restricted containers or VMs with least-privilege filesystem access and network allowlists.
  • Keep secrets and sensitive paths outside agent-visible workspaces; deny access to environment files, SSH material, cloud credentials, and kubeconfig by default.
  • Log tool registration, invocations, parameters, results, and anomalous behavior for review.
  • Only install or connect MCP servers from trusted, verified publishers and reassess them after updates.

Evidence