AWS Kiro Prompt Injection Flaws Enabled Config Rewrites and Arbitrary Code Execution
Emerging Technology Risk · 4 sources · Updated 4mo ago · First seen Jul 21, 2026

Researchers disclosed multiple prompt injection flaws in AWS's Kiro IDE that allowed untrusted content to rewrite the tool's own configuration and execute arbitrary code on a developer's machine. One attack showed that prompt injection hidden in source code comments could modify trusted settings such as .vscode/settings.json or add malicious Model Context Protocol servers through ~/.kiro/settings/mcp.json, effectively allowlisting dangerous Bash commands and triggering local program execution without meaningful user consent.
A later finding showed a poisoned web page could similarly induce Kiro to overwrite its MCP configuration, automatically reload it, and launch attacker-defined MCP servers with the developer's privileges. AWS patched the issues in subsequent Kiro releases, including fixes reported in v0.1.42 and confirmation that the web-based attack no longer worked in v0.11.130, while adding protected-path enforcement and a capability-based permissions model; no CVE was assigned to the reported flaws.
Why it matters
Impact assessment
AWS Kiro users are affected, especially developers using the IDE in default Autopilot or trusted-workspace workflows where the agent can fetch external content and access local credentials, source code, or infrastructure tooling. The impact is high because successful exploitation yields arbitrary code execution with the developer’s privileges, enabling credential theft, source code exfiltration, persistence, and lateral movement into reachable internal systems.
The exposure appears broad across Kiro deployments prior to the patched releases rather than narrowly targeted, because the attack can be triggered by routine actions such as asking Kiro to summarize a web page, read documentation, or inspect source files containing hidden instructions. No confirmed in-the-wild exploitation was reported in the references, but researchers demonstrated reliable proof-of-concept execution within one or two attempts and showed that user approval controls did not provide a meaningful barrier.
Supporting facts
- Affected product: AWS Kiro IDE.
- Affected user population: developers using AI-assisted coding workflows with web fetch, documentation summarization, or project file analysis.
- High-value environments at risk: developer workstations with cloud credentials, source repositories, CI/CD access, production infrastructure access, or internal network reachability.
- Business impact: theft of credentials or source code, workstation compromise, persistence, and potential pivoting into enterprise systems.
- Scope: default configurations were affected; tested on macOS and Ubuntu builds.
- Exploitation status: no evidence of in-the-wild exploitation of this specific flaw was reported.
- Severity indicators: arbitrary code execution occurred without meaningful consent; related Kiro issue CVE-2026-10591 was scored CVSS 3.1 8.8 / CVSS 4.0 8.6, which supports treating this class of issue as high risk even though no CVE was assigned here.


