Skip to content
MediumNews

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

Published
Record updated
View JSON

Summary

A high-severity flaw in Amazon Q Developer, tracked as CVE-2026-12957 (CVSS 8.5), let a malicious repository run commands and steal a developer's cloud credentials. Amazon Q read the MCP configuration file .amazonq/mcp.json from the open workspace and launched the servers it defined, and those processes inherited the developer's full environment, including AWS keys and cloud CLI tokens. Wiz Research found and reported the flaw, and Amazon has patched it.

Mitigation

Update. CVE-2026-12957 is fixed in Language Servers for AWS 1.65.0, but AWS's bulletin tells customers to move to 1.69.0, which also closes CVE-2026-12958. Patched plugin minimums: VS Code 2.20 or later, JetBrains 4.3 or later, Eclipse 2.7.4 or later, Visual Studio toolkit 1.94.0.0 or later.