AI-assisted development tools show mixed immunity to prompt injection
MCP-based development clients vary widely in their resistance to prompt-injection attacks, with many being vulnerable.
Software arXiv 23 Mar 2026 Measurement Real-world evidence
Published as “Are AI-assisted Development Tools Immune to Prompt Injection?”
Why it matters
Organizations should prefer clients with stronger validation and sandboxing (e.g., Claude Desktop, Cline) and apply defense-in-depth measures when using more vulnerable tools like Cursor.
Summary
The study finds that AI-assisted development tools vary widely in their resistance to prompt-injection via tool-poisoning, with Claude Desktop and Cline showing the lowest risk and Cursor being the most vulnerable, failing all four attack vectors. The authors empirically tested seven real-world Model Context Protocol (MCP) clients and identified gaps such as missing static validation, limited parameter visibility, and lack of sandboxing. Evidence is based on controlled attacks on the actual client software, but the authors note that no client blocked every attack and that their risk assessments may be biased.
What they found 1
- Claude Desktop exhibits relatively low risk due to strong guardrails and UI separation.
“Claude Desktop is relatively safe with respect to prompt injection and tool poisoning, and we evaluate its risk as Low to Medium.”
Caveats 3
- Even the most secure clients showed vulnerabilities in specific scenarios, and no client blocked all attacks.
- An internal validity threat is that the risk assessment and evaluations were done by the authors, which may introduce author bias.
- An external validity threat is regarding the generalization of our results; only seven clients were studied and the controlled test environment may not reflect production scenarios.
What’s new here 4
- First empirical evaluation of prompt-injection (tool-poisoning) on real MCP client implementations.
- Comparative risk assessment across seven widely-used AI-assisted development tools.
- Systematic coverage analysis of six security-feature categories (static validation, parameter visibility, injection detection, user warnings, sandboxing, audit logging).
- Actionable recommendations for MCP protocol designers, client vendors, and end-users.