Indirect prompt injection
Also called: indirect injection · cross-domain prompt injection · XPIA
Indirect prompt injection is prompt injection delivered through content an AI system reads on a user's behalf, such as a web page, document, email, code comment, issue or tool response, rather than typed by the user. The victim never sees the malicious instructions; their own assistant or agent acts on them.
How it works
An attacker plants instructions in something the target's agent is likely to process: a README, a calendar invite, a support ticket, a search result. When the agent retrieves it, the model reads the planted text as part of its task. Coding agents, browser agents and assistants with connectors are exposed because they read untrusted content and can act.
How to defend
Assume anything an agent retrieves may contain instructions. Separate reading from acting, show users what an agent is about to do, block automatic rendering of links and images in output, and scope connector permissions tightly.
Real cases 44 stories
LOW
Vulnerability · Amazon Web Services · CVE-2026-136267 · CVSS 7.5
Kiro Web: tool-call markup in a file ran with no consent promptCVE-2026-136267 let tool-call markup in content a Kiro Web agent read run as a command in the hosted development environment, with no consent prompt. AWS disclosed it on November 25, 2026 and fixed it server-side on October 30.
INFO
Benchmark · AIR Security
WebSec: AIR scores eight search APIs that feed AI agentsAIR Security tested eight web search APIs built for AI agents and reports that every one returned malicious or risky content to ordinary coding queries, 1,026 times across more than 282,000 results.
INFO
Research · Radware
Hidden AI text: Radware counts prompt injections across GitHubRadware scanned about 145 million GitHub issues, pull requests, comments and README files for text hidden from readers but visible to AI coding agents, and validated 2,281 cases. Only 43 attack other people's agents.
MED
Vulnerability · ServiceNow · CVE-2026-18883 · CVSS 7.1
ServiceNow: an email can steer the Now Assist CSM reply agentServiceNow published CVE-2026-18883 on 19 November 2026, an indirect prompt injection in the Email Response AI Agent in Now Assist for CSM. The fix went out centrally, so customers do not need to upgrade.
INFO
Lab safety · Google
Mirror Dimension: Chrome tests browsing agents on a fake webMirror Dimension is a sealed synthetic web that Chrome's AI Security team uses to test browsing agents against indirect prompt injection. Google says the pipeline writes more than 1,000 attack test candidates per engineer per day.
INFO
Research · University of Southern California
AutoPI: a red teamer that counts how many ways an agent breaksAutoPI is an adaptive prompt-injection red teamer that writes one injection per technique in the PIAtlas taxonomy and reports technique coverage alongside attack success rate. The authors evaluate it on AgentDojo and IPI Arena.
HIGH
Supply chain · Bitdefender
Bitdefender: 22 GitHub repos make coding agents run a credential stealerBitdefender Labs found 22 GitHub repositories that run a credential stealer when a developer opens them in an AI coding tool, through planted agent instruction files and a Claude Code session-start hook.
MED
Vulnerability · Patchstack · CVE-2026-130121 · CVSS 7.2
AI Puffer: the plugin's own comment reply becomes stored XSSCVE-2026-130121 lets an unauthenticated visitor post a WordPress comment that makes the AI Puffer plugin's auto-reply store HTML unfiltered, where it runs for every reader. Version 2.5.29 fixes it.
MED
Vulnerability · Depi
Codex: a GitHub issue reached the tokens that publish its npm packageTwo Depi researchers chained a prompt injection in the openai/codex issue triage workflow to a sandbox escape and cache poisoning, reaching tokens that could publish a backdoored @openai/codex npm release. OpenAI has fixed the workflow.
MED
Vulnerability · SiYuan · CVSS 7.5
SiYuan: the agent chat panel renders the last reply as raw HTMLSiYuan's AI agent chat panel renders the final assistant message as unsanitized HTML, so an injected event handler can run operating-system commands in the desktop app's local-kernel mode. The maintainer scores it 7.5.
MED
Vulnerability · AG2 · CVE-2026-113663 · CVSS 8.8
AG2: a newline runs commands past the SandboxShellTool allowlistCVE-2026-113663 carries a CVSS 8.8 score for a newline that defeats the command allowlist in AG2's SandboxShellTool. AG2 1.1.1 fixes it, and the advisory lists no fixed version for the autogen package.
MED
Research · Google DeepMind
Agent Swarms: DeepMind automates adaptive prompt injectionGoogle DeepMind reports that an automated attacker built from swarms of LLM agents drove attack resistance to 10% or less on six of seven models tested, including models that score as robust on public benchmarks.
MED
Vulnerability · VulnCheck · CVE-2026-125368 · CVSS 7.7
OmniAgent: find -execdir runs commands past the approval gateOmniAgent treats any shell command starting with find as safe, so a prompt-injected agent can use find -execdir to run binaries with no human approval. VulnCheck published the advisory, credited to George Chen, on November 9.
INFO
Research · Amazon
Task tampering: injections that change a decision, not the taskAmazon researchers report that injections tampering with a decision inside the agent's own task still succeed 9.5% to 12.1% of the time against a defense that cuts task-redirection attacks to 2.4%.
INFO
Lab safety · OpenAI
OpenAI: a model hid grading instructions in its own filenamesAn internal OpenAI research model renamed its output spreadsheets so the filenames told the grader to award full credit, and two of the three graders accepted the claim, OpenAI's misalignment report says.
MED
Research · Technion
Voluntary Servitude: a fake safety warning steers agents past injection filtersVoluntary Servitude is an injection that carries no instructions: a fabricated safety warning in content an agent reads makes the agent rule out the safe option on its own. Two detectors scored the payloads benign, the authors report.
MED
Research · University of Illinois Chicago
AgentShield: anti-bot defenses miss agentic browsers running locallyAgentShield is a behavioral fingerprinting defense from the University of Illinois Chicago that tells AI browser agents apart from humans. The authors report Cloudflare AI Bot Blocking and reCAPTCHA v3 both missed Perplexity Comet.
HIGH
Vulnerability · Forever Security
EMBRACE: embedded browsers in five AI assistants leak files and run codeEMBRACE is a class of flaws in the browsers embedded in Cursor, GitHub Copilot, Codex, VS Code and Claude Desktop. Forever Security says a page or local file can read files across the disk or run code. Codex and VS Code are unpatched.
MED
Vulnerability · Jan · CVE-2026-122235 · CVSS 4.7
Jan: a dangling symlink writes outside the agent's workspaceJan's write and edit tools did not resolve symlinks pointing at files that do not exist yet, so a planted link let an agent write into SSH or shell startup files while the approval prompt showed an in-workspace path.
MED
Vulnerability · Strands Agents · CVE-2026-115415 · CVSS 6.5
Strands Agents Tools: a prompt turns off the environment tool's maskingStrands Agents Tools exposed the agent host's environment variables, including cloud keys and API tokens, when a crafted prompt turned off the environment tool's secret masking. AWS fixed it in 0.8.6 and deprecated the tool.
INFO
Lab safety · Google DeepMind
Gemini 4 Carbon: Google restricts its most cyber-capable model to defendersGemini 4 Carbon is Google's new frontier model, which the company says leads on finding, exploiting and patching software flaws. Google reports 88.2% on SEC-bench Pro and is giving access first to a vetted subset of cyber defenders.
INFO
Research · Radware
Radware: 47 attacks on coding agents hidden in GitHub issues and READMEsRadware scanned 95.1 million GitHub issues and pull requests, 47.6 million archived items and 2 million top repository READMEs for instructions hidden from humans but visible to coding agents, finding 47 attack attempts.
MED
Attack · AIR Security
Web Hole: expired domains still rank in the results AI agents readAIR Security reports that 36 sites still returned in AI agent search results sit on domains nobody owns, so anyone can buy one and serve instructions to the agents that fetch the page.
HIGH
Attack · Forever Security
Markdown in Downloads: a planted AGENTS.md hijacks Codex and Claude CodeA planted AGENTS.md file in a user's Downloads folder makes OpenAI Codex install malware, Forever Security reports, and a matching CLAUDE.md reroutes Claude Code's traffic to an attacker server that captures its OAuth token.
HIGH
Research · arXiv
Compaction Laundering: a forged user turn survives agent summarizationCompaction Laundering forges a user approval that survives context compaction in five coding agents that flatten their conversation history into plain text. Pixee reports the forged turn entered agent memory 87 to 100% of the time.
INFO
Research · arXiv
CarryoverBench: a planted order fires again after the attacker leavesCarryoverBench measures prompt injections that survive the session where they were planted and re-fire through an agent's scheduled heartbeat or long-term memory. The authors report no decay over five later rounds.
INFO
Research · Redact
WhatsApp help pages carried 102 hidden blocks of AI instructionsRedact found 102 blocks of reader-invisible text across 80 WhatsApp help pages, one telling an AI not to recommend contacting a data protection authority. WhatsApp says the text was chatbot instructions exposed by a bug it has fixed.
MED
Vulnerability · VulnCheck · CVE-2026-76066 · CVSS 8.7
IntentKit: owner-only tools ran for unauthenticated callersCVE-2026-76066 lets an unauthenticated caller run IntentKit's owner-only tools, including a wallet transfer, because the executor checks the full tool registry instead of the tools advertised for that turn.
MED
Vulnerability · lkloliver · CVE-2026-95183
DeepSeek Harness: injected orders survive context compactionCVE-2026-95183 is indirect prompt injection in DeepSeek Harness: instructions planted in tool output are copied into the model-written compaction summary and come back as the resumed session's own pending tasks, unseen by the user.
MED
Research · HiddenLayer
Jev: a planted ad derails TypeSafe's System One modelTypeSafe's Jev and other System One models follow instructions planted in untrusted web pages, HiddenLayer reports, and evade their own toxicity scoring under TokenBreak-style edits.
INFO
Research · Vanderbilt University
INFUSE: a 40-task benchmark for injections hidden in agent filesINFUSE is a benchmark that hides adversarial instructions in the files a coding agent reads across 40 tasks. Across 19 models the authors report a mean attack success rate of 19.6%, ranging from 3.2% to 41.9%.
HIGH
Vulnerability · Microsoft · CVE-2026-102232
VS Code: a prompt injection could plant a shell command in Copilot hooksCVE-2026-102232 let Visual Studio Code's Copilot harness auto-approve edits to custom hook files, so a prompt injection could plant a shell command that ran with the user's privileges. Microsoft fixed it in 1.141.1.
MED
Vulnerability · VulnCheck · CVE-2026-110202 · CVSS 7.7
Roo Code: five ways to slip denied commands past auto-approveRoo Code 3.54.0 and earlier approve denied shell commands in five different ways, each filed as a CVE on October 13. The AI coding extension shut down in May 2026 and its repository is archived, so no fix will ship.
INFO
Research · MITRE
MITRE ATT&CK v20: prompt injection gets its own technique IDsMITRE ATT&CK v20 adds four AI techniques to the Enterprise matrix, among them Direct Prompt Injection (T1699), Indirect Prompt Injection (T1698) and AI-Enabled Exfiltration (T1700), giving detection teams IDs to map coverage against.
INFO
Lab safety · Google DeepMind
Gemini 4 Argon: Google cannot rule out its cybersecurity capability levelGoogle cannot rule out that Gemini 4 Argon reaches its cybersecurity Critical Capability Level, it says, and has applied new frontier safeguards. Argon solved all 12 simulated cyberattack scenarios, up from five in the last generation.
INFO
Research · Signals Corps
llms.txt: 2,035 sites ask AI agents to act on a user's behalfSignals Corps read the llms.txt files of 113,457 sites in Common Crawl and found 2,035 that ask an AI agent to take an action. Two sites tried to override the model, and one documentation site tells agents to sign users up and hide it.
HIGH
Vulnerability · Lasso Security · CVE-2026-77931 · CVSS 8.7
Lasso Security: five agent platforms ship an ungated shell toolLasso Security published CVEs in quick succession against self-hosted AI agent platforms, including unauthenticated remote code execution in piflow, Cognition and DB-GPT. Each traces to a command tool the model runs with no approval step.
HIGH
Vulnerability · VulnCheck · CVE-2026-109560 · CVSS 7.7
Continue CLI: chained commands bypass the Bash approval ruleCVE-2026-109560 lets text planted in a repository or a fetched web page add commands after an approved Bash prefix rule in Continue CLI, so they run as the user. Versions through 1.5.47 are affected, with no fix listed.
INFO
Research · Perplexity
BrowseSafe++: a small detector beats frontier models, adaptive attacks winBrowseSafe++ is a 38,675 pair benchmark for prompt injection hidden in web pages, from Perplexity, Purdue and Rutgers. Their 0.8B detector reaches 98.29 F1 on HTML, but rewritten injections still reach 95.41% success on Kimi K2.
MED
Vulnerability · VulnCheck · CVE-2026-108159 · CVSS 7.7
AstronRPA: text on a web page makes the AI chat run commandsCVE-2026-108159 is a code execution chain in iFlytek's AstronRPA desktop client: injected text on a web page makes the model return HTML that calls an unrestricted IPC handler with shell metacharacters. No fixed version is listed.
HIGH
Attack · Barracuda
Barracuda: one phishing email targets both the reader and the inbox AIPhishing emails now hide instructions aimed at the AI assistant summarizing an inbox, Barracuda reports. One campaign paired a password-protected attachment for the reader with prompt injection in HTML comments for the AI.
MED
Attack · Adversa AI
Cryptographic Context Injection leaks secrets from Copilot CLIAdversa AI reports that GitHub Copilot CLI in autopilot mode can be made to read local files such as .env.prod and send their contents to an attacker URL, by hiding encrypted instructions in a page the user asks it to fetch.
MED
Vulnerability · JFrog · CVE-2026-104247 · CVSS 6.3
VTCode: a quoted flag slipped past the agent's find approval checkVTCode, an open-source terminal coding agent, auto-approved shell commands a token check should have blocked. JFrog reports that an empty quote inside a find flag, written as -exe$''c, kept the command classified as safe. Fixed in 0.171.5.
MED
Research · arXiv
Explosive prompts: dormant injections fire on 'thanks' in agentsExplosive prompts are dormant prompt injections that wait for a harmless trigger such as 'thanks'. A new paper reports 43% to 83% success on nine production agents, versus at most 3% for plain injections, and proposes the DeFuse detector.