Skip to content
MediumNews

MCP Auto-Execution: From Git Clone to Cloud Compromise in Amazon Q VS Code Extension

Published
Record updated
View JSON

Summary

Wiz Research found a high-severity flaw, CVE-2026-12957, in the Amazon Q Developer Extension for Visual Studio Code. Amazon Q loaded MCP server configurations from .amazonq/mcp.json in the workspace without user consent or a workspace trust check. Because spawned processes inherited the user's full environment, opening a malicious repository could lead to arbitrary code execution and cloud credential theft.

Mitigation

Fixed in language server version 1.65.0. Affected versions are language server versions below 1.65.0.