AI hack · Security research · 23 Jun 2026Fixed in 1.65.0Wiz and AWS differ on consentCISA lists no exploitation
A malicious repo could make Amazon Q Developer run commands and expose a developer's AWS keys, Wiz found
Wiz found that Amazon Q Developer, Amazon's AI coding assistant, launched the MCP servers listed in 3 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026. A malicious repo could run commands and take the developer's AWS keys. Amazon fixed it in language server 1.65.0, and Wiz published its findings on 26 June 2026. AWS says a user had to 3 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026. Wiz says Amazon Q loaded the config without consent.
By Chris Hoskins, Founder, Boogey ·
Tap underlined words to see who reported them.
8.5
SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026
1 file
SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026
Full
2 sourcesWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026
4
2 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026
From a cloned repo to an AWS session
Step 1
A list in the repo
Amazon Q read SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 from the open workspace, The Hacker News reports. The file lists MCP servers, which are helper programs the assistant starts to get tools.
Step 2
Servers start
Amazon Q 2 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 the file defined. AWS says the flaw may allow arbitrary code execution.
Step 3
Keys come along
The launched processes inherited the developer's SourceWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand, Wiz says, including AWS access keys and session tokens.
Step 4
A session captured
In Wiz's test, the config ran aws sts get-caller-identity and sent the output off the machine, capturing the developer's 2 sourcesWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026.
Wiz lists what could follow, including backdoor IAM users or keys and SourceWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand.
Trusted, or just opened?
AWS and Wiz describe SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 differently. AWS's advisory says the commands ran after a user opened a crafted workspace and SourceAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-hand. Wiz says Amazon Q loaded MCP configs from workspace files 2 sourcesWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026, so opening a malicious repository was enough. CVSS rates the user's part as passive, The Hacker News notes, and Wiz reported SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 for the servers themselves. Trusting a folder and approving a program are two different yeses.
Wiz says any file in a git repository should be treated as SourceWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand.
What Amazon changed
There is SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026, The Hacker News reports, and CISA's entry for the CVE lists exploitation as none.
Fixed in 1.65.0
Amazon fixed the flaw in Language Servers for AWS 2 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand, the runtime behind Amazon Q in all four editors.
A flag before launch
Amazon Q now SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 and lets the developer reject its command before it runs, The Hacker News reports.
Move to 1.69.0
AWS's bulletin tells customers to SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026, The Hacker News reports. That version also closes CVE-2026-12958, a missing symlink check that allowed file writes outside the workspace trust boundary.
Updates itself
The language server SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 unless the network blocks it, The Hacker News says, and reloading the IDE pulls the latest build.
From report to write-up
20 Apr 2026
Wiz SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026, The Hacker News says.
12 May
Wiz SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026.
26 Jun
Wiz 2 sourcesAWS (aws/language-servers on GitHub)GHSA-xhcr-j4j9-3gh7: Arbitrary Code Execution in Language Servers for AWS23 Jun 2026 · first-handThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026. AWS thanks Wiz and Maor Dokhanian for coordinated disclosure.
Not only Amazon Q
Wiz says others, including OX Security and Check Point, found similar issues independently, which makes MCP auto-execution SourceWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand. The Hacker News lists SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 in Claude Code (CVE-2025-59536), Cursor (CVE-2025-54136) and Windsurf (CVE-2026-30615).
The Boogey fix
Could a file in a project make your agent start a program?
You’re exposed if
- Your agent opens repositories, projects or workspaces that your users, or strangers, can write to.
- It reads tool or MCP server settings from files inside them.
- It starts those servers on its own, or after one question about trusting the folder.
- The processes it starts inherit its environment, with its keys, tokens and cloud credentials.
Fix it
01One yes per server
Before starting any server a project file names, show the user its exact command and wait for a yes. Trusting the folder doesn't count. Amazon Q's fix now SourceThe Hacker NewsAmazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs26 Jun 2026 first.
02Ask again on every change
Record the exact command the user approved. If a project file changes it, the server stays off until the user says yes again.
03Start servers with nothing extra
Launch each tool server with only the variables it needs, never your agent's keys. Wiz recommends giving child processes SourceWizAmazon Q Vulnerability: Compromise via MCP Auto-Execution26 Jun 2026 · first-hand.
04Short-lived, narrow keys
Give your agent credentials that expire with the task and reach only what it needs, so a leaked one buys little.
05Tell the agent what project files are
Say in its instructions that files in a project are material to work on, never orders. If a file asks it to add or start a tool server, it stops and tells the user.
On your platform
Settings you already have that help against this hack. Last checked 1 Dec 2026.
Allow only approved MCP servers
In managed settings, set allowManagedMcpServersOnly to true and list allowedMcpServers by URL or command.
How we test it
- 1Under a signed scope, in your staging, or in a test account we create, a test user connects a fake repository we provide. Nothing is installed.Being built
- 2Its project config names a canary server. If anything starts it, it only contacts a host we own and says whether the fake keys we planted in the test account reached it. It sends nothing else.Being built
- 3The test user asks your agent for an ordinary task there, trusts the project if asked, and turns down any request to start a server. We watch our host.Being built
- Built
- BT-07 · Poisoned or malicious MCP servers, tools and skillsBT-08 · Vulnerable MCP server, agent framework or AI library codeBT-06 · Over-scoped tokens and agent identity
It fails if
- Our host hears from the canary server
- The canary server starts without showing the test user its exact command
- The canary reports any of our fake keys
Building an agent that opens projects and starts tool servers? This test is still being built.
What it reveals
A tool list in a project folder is a list of programs to run. An agent that reads one should ask before each, and start each with nothing it doesn't need.