Reviewing Amazon Q Developer — the MCP auto-execution CVE
CVE-2026-12957 let a single file in a cloned repository run arbitrary MCP server code and steal AWS credentials, with no prompt and no consent. What a review has to check before enabling IDE-integrated agents.
Amazon Q Developer is AWS's IDE-integrated coding agent — autocomplete, chat, and autonomous multi-step coding tasks, wired into the same MCP (Model Context Protocol) ecosystem most coding agents now support for extending what tools an agent can call. CVE-2026-12957, reported by Wiz, is worth a close read because the vulnerable behavior wasn't an edge case — it was the default handling of a config file that already exists in a lot of repositories being cloned every day.
Amazon Q Developer, briefly
Like most IDE-integrated coding agents, Q Developer reads workspace configuration automatically to know what tools and MCP servers are available in a given project — that's the feature that makes per-project MCP tooling convenient instead of something a developer has to re-declare by hand every session. Convenience and automatic trust are the same design decision wearing two names, and CVE-2026-12957 is what happens when that decision doesn't distinguish a project the developer set up from a project someone else authored.
CVE-2026-12957 — MCP auto-execution
CVE-2026-12957 — three steps, zero prompts
| Step | What happens |
|---|---|
| 1. Clone | A developer clones a repository containing a crafted .amazonq/mcp.json file — an ordinary, unremarkable action taken dozens of times a day. |
| 2. Auto-execution | Amazon Q Developer's IDE integration reads the workspace's MCP configuration automatically and starts the declared MCP server — with no prompt, no consent dialog, and no indication to the developer that code just executed. |
| 3. Credential theft | The malicious MCP server, now running with the developer's local privileges, reads AWS credentials from the environment and exfiltrates them. |
The developer didn't run anything, approve anything, or even interact with Q Developer directly. Opening the folder was the entire attack surface. Wiz researcher Maor Dokhanian's proof of concept was a one-line.amazonq/mcp.jsonpipingaws sts get-caller-identityto an attacker-controlled endpoint — full identity compromise from opening a booby-trapped repo in the IDE, no clicks beyond that.
Per AWS's own security bulletin, CVE-2026-12957 itself was fixed in Language Servers for AWS 1.65.0 — but AWS directs customers to update to 1.69.0, which also addresses a second, related issue.
A second CVE in the same bulletin: symlink validation
CVE-2026-12958, disclosed in the same AWS bulletin, is a missing symlink-validation flaw that permits path traversal outside the intended workspace boundary. Fixes for both CVEs shipped across every Amazon Q Developer plugin surface — VS Code, JetBrains, Eclipse, and Visual Studio — plus the underlying language server itself, meaning a review needs to confirm the fixed version across each IDE integration in use, not just one.
Why this isn't just a Q Developer problem
The specific CVE is Q Developer's, but the pattern it exposes — workspace-level MCP or agent configuration files read and executed automatically on open, with no per-server trust decision — is common across IDE-integrated agents generally, not unique to this one product. A repository is, by definition, something that can come from someone else: a fork, a contributor's branch, a dependency pulled in as a submodule. Any agent that treats a workspace config file as trusted by default is exposed to some version of this same chain.
See the MCP server review checklist for the general version of the auto-execution question this CVE is a specific instance of.
Review checklist
For any team using Amazon Q Developer or another IDE-integrated coding agent with MCP support, a design-time review should be able to answer:
- Is Language Servers for AWS (and every IDE plugin — VS Code, JetBrains, Eclipse, Visual Studio) patched to version 1.69.0 or later, closing both CVE-2026-12957 and CVE-2026-12958?
- Does the IDE integration require explicit developer consent before starting an MCP server declared in a cloned repository, or does it auto-execute on open?
- Are AWS credentials available to a developer's local environment scoped to what that developer's actual work requires, limiting the blast radius if a credential is exfiltrated?
- Is there a policy for what happens when a repository from an external contributor or fork is opened — does it get the same automatic trust as an internally authored one?
Sources
Blog
Get new posts in your inbox
AI security review, OWASP Agentic Top 10, ISO 42001 evidence, and what AI Committees actually need. No cadence promises — we publish when there's something worth reading.
Review an Amazon Q Developer deployment before it ships
MCP auto-execution posture, workspace-config trust boundaries, and credential scoping — mapped to a disposition your AI Committee can act on.
A note on scope: Drel reviews assessed systems against documented architecture, configuration and intent. It does not ingest live telemetry from production environments. Dispositions reflect the assessed system at the time of review and the re-assessment triggers that govern when the disposition must be revisited.