Skip to main content
Mallory
← Back to News
ai-platform-securityendpoint-software-vulnerabilitywidely-deployed-product-advisorycredential-access-method

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 Q Developer Flaw Let Malicious Repos Execute Code and Steal Cloud Credentials

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.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Apr 20, 2026 – Jun 26, 2026
  1. Jun 26, 20265mo ago

    Wiz publicly discloses Amazon Q repository attack flaw

    Wiz published its write-up describing how a malicious repository containing a .amazonq/mcp.json file could trigger local process execution in Amazon Q Developer and expose AWS credentials, API keys, tokens, and SSH agent access. Reports said no known public exploitation had been observed.

    Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs
  2. Jun 23, 20265mo ago

    CVE-2026-12958 is publicly published

    The arbitrary file write vulnerability CVE-2026-12958 was published publicly, with remediation guidance to upgrade Language Servers for AWS to version 1.69.0 or later.

    CVE-2026-12958 - Arbitrary file write in Language Servers for AWS
  3. Jun 23, 20265mo ago

    AWS publishes advisory for CVE-2026-12957 and CVE-2026-12958

    AWS published a security bulletin covering CVE-2026-12957 and the related symlink-handling flaw CVE-2026-12958 affecting Language Servers for AWS and Amazon Q Developer plugins.

    CVE-2026-12957 and CVE-2026-12958 - Issues in Language Servers for AWS and Amazon Q Developer Plugins
  4. May 12, 20267mo ago

    AWS fixes CVE-2026-12957 in Language Servers for AWS 1.65.0

    Amazon remediated CVE-2026-12957 on May 12, with the fix delivered in Language Servers for AWS version 1.65.0 and propagated to Amazon Q Developer integrations across supported IDEs.

    Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs
  5. Apr 20, 20267mo ago

    Wiz reports Amazon Q command-execution flaw to AWS

    Wiz Research notified AWS about CVE-2026-12957, a high-severity flaw in Amazon Q Developer and Language Servers for AWS that could let a malicious repository execute attacker-controlled commands and expose developer credentials.

    Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
Amazon Q DeveloperLanguage Servers For Aws

Organizations

1 linked
Amazon Web Services
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.