ctipilot.ch

Amazon Q Developer auto-loads workspace .amazonq/mcp.json without consent — repo-planted code execution + AWS credential theft

cve · CVE-2026-12957

Coverage timeline
1
first 2026-06-27 → last 2026-06-27
Briefs
1
1 distinct
Sources cited
20
19 hosts
Sections touched
1
research
Co-occurring entities
2
see Related entities below

Story timeline

  1. 2026-06-27CTI Daily Brief — 2026-06-27
    researchFirst coverage. Wiz Research: VS Code extension auto-executes MCP configs from .amazonq/mcp.json with no workspace-trust check; spawned processes inherit AWS/IAM/SSH env. CVSS 8.5; Language Server for AWS <1.65.0, fixed 1.69.0. Part of a 6+ MCP-auto-exec class across AI coding assistants.

Where this entity is cited

  • research1

Source distribution

  • securityweek.com2 (10%)
  • theregister.com1 (5%)
  • wiz.io1 (5%)
  • access.redhat.com1 (5%)
  • bankinfosecurity.com1 (5%)
  • bleepingcomputer.com1 (5%)
  • cloud.google.com1 (5%)
  • github.com1 (5%)
  • other11 (55%)

Related entities

External references

NVD · cve.org · CISA KEV

All cited sources (20)

Items in briefs about Amazon Q Developer auto-loads workspace .amazonq/mcp.json without consent — repo-planted code execution + AWS credential theft (1)

CVE-2026-12957 — Amazon Q Developer auto-loaded workspace MCP configs, enabling repo-planted code execution and AWS credential theft (Wiz)

From CTI Daily Brief — 2026-06-27 · published 2026-06-27 · view item permalink →

Wiz Research disclosed (2026-06-26) that the Amazon Q Developer VS Code extension automatically loaded and executed Model Context Protocol (MCP) server configurations from a workspace's .amazonq/mcp.json with no user consent, workspace-trust check, or warning (Wiz Research, 2026-06-26). Spawned MCP processes inherited the developer's full environment — AWS session tokens, IAM credentials, SSH agent sockets — so cloning a malicious repository and opening it with Amazon Q active silently executed an attacker command; a minimal PoC ran aws sts get-caller-identity and POSTed the result to an external host with zero clicks (The Register, 2026-06-26). Wiz places it in a documented class of at least six MCP-auto-execution flaws across AI coding assistants (Cursor, Windsurf, Claude Code) — a workspace-trust-enforcement failure pattern, not a one-off. Affected: Language Server for AWS < 1.65.0; fixed in 1.65.0 (discovered 2026-04-17, patched 2026-05-12, public 2026-06-26). Why it matters to us: Any CH/EU developer team using Amazon Q with AWS should confirm the language server is ≥ 1.65.0, audit repositories for .amazonq/mcp.json, and enforce VS Code workspace-trust policies so AI assistants do not auto-load configs from untrusted clones.