Amazon Q Developer Flaw Let Malicious Repos Execute Code and Steal Cloud Credentials
Emerging Technology Risk · 12 sources · Updated 5mo ago · First seen Jun 26, 2026

Amazon patched a high-severity flaw in Amazon Q Developer and the underlying Language Servers for AWS that allowed a booby-trapped repository to execute attacker-controlled commands when a developer opened and trusted a workspace. Tracked as CVE-2026-12957 and rated CVSS 8.5, the issue involved unsafe handling of Model Context Protocol (MCP) configuration files such as .amazonq/mcp.json, which could cause Amazon Q integrations for VS Code, JetBrains, Eclipse, and Visual Studio to launch local processes defined by an attacker. Those processes inherited the developer’s environment, exposing AWS credentials, API keys, authentication tokens, and SSH agent access already present on the machine.
Wiz Research reported the vulnerability to AWS on April 20, and AWS fixed it on May 12, later publishing an advisory and releasing remediation in Language Servers for AWS 1.65.0. AWS also addressed a related flaw, CVE-2026-12958, involving missing symlink validation that could enable arbitrary file writes outside the workspace trust boundary; customers were advised to upgrade to version 1.69.0 to cover both issues. Researchers said likely attack paths include fake coding tests, typosquatted open-source packages, and malicious pull requests, while noting the weakness reflects broader trust-boundary problems emerging across AI coding assistants that adopt MCP-style workspace configuration.
Why it matters
Impact assessment
Amazon Q Developer users across VS Code, JetBrains, Eclipse, and Visual Studio were exposed if their environment used vulnerable Language Servers for AWS builds, especially developers with active AWS sessions, cloud CLI tokens, API keys, SSH agent access, VPN connectivity, or privileged access to internal and production systems. The impact is high because opening a malicious repository could lead to local code execution and immediate credential theft, creating a direct path from developer workstation compromise to cloud compromise, lateral movement, persistence, and software supply chain abuse.
The exposure is broad across organizations using Amazon Q Developer, but exploitation is targeted because it requires luring a developer into opening and trusting a malicious workspace or repository. No confirmed public exploitation was reported in the referenced sources, but researchers published a proof of concept and described realistic delivery paths including fake coding tests, typosquatted packages, malicious pull requests, and compromised dependencies.
Supporting facts
- Primary issue: CVE-2026-12957 in Amazon Q Developer / Language Servers for AWS.
- Related issue: CVE-2026-12958 in Language Servers for AWS.
- Affected user population: developers using Amazon Q Developer integrations in VS Code, JetBrains, Eclipse, and Visual Studio.
- High-value exposed data: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, cloud CLI tokens, API keys, authentication tokens, and SSH agent sockets.
- Potential downstream business impact: cloud account misuse, IAM persistence, access to internal services, lateral movement, production impact, and supply chain compromise through maintainer workstations.
- Exploitation status: no known public exploitation reported at time of disclosure.
- Disclosure and remediation timeline: reported to AWS on 2026-04-20, fixed on 2026-05-12, publicly disclosed on 2026-06-26.
- Researcher and vendor entities: Wiz Research, Maor Dokhanian, AWS, Amazon Q Developer, Language Servers for AWS.


