{"id":237751,"date":"2026-06-26T09:53:00","date_gmt":"2026-06-26T13:53:00","guid":{"rendered":"https:\/\/testing.news-you-need.com\/index.php\/2026\/06\/26\/amazon-q-developer-flaw-could-let-malicious-repos-run-code-via-mcp-configs\/"},"modified":"2026-06-26T10:51:15","modified_gmt":"2026-06-26T14:51:15","slug":"amazon-q-developer-flaw-could-let-malicious-repos-run-code-via-mcp-configs","status":"publish","type":"post","link":"https:\/\/testing.news-you-need.com\/index.php\/2026\/06\/26\/amazon-q-developer-flaw-could-let-malicious-repos-run-code-via-mcp-configs\/","title":{"rendered":"Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs"},"content":{"rendered":"<p><a href=\"https:\/\/thehackernews.com\/2026\/06\/amazon-q-developer-flaw-could-let.html\">Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs<\/a><\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/06\/amazon-q-developer-flaw-could-let.html\">https:\/\/thehackernews.com\/2026\/06\/amazon-q-developer-flaw-could-let.html<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-06-26 09:53:00<\/a><\/p>\n<p>Source Domain: <a href=\"thehackernews.com\">thehackernews.com<\/a><\/p>\n<p>Author: <a href=\"\"><\/a><\/p>\n<p> Using an unordered list, summarize the following article with between 4 and 8 key points.<br \/>\n\ue804Swati Khandelwal\ue802Jun 26, 2026AI Security \/ Vulnerability<br \/>\nA high-severity flaw in Amazon Q Developer let a malicious repository run commands and steal a developer&#8217;s cloud credentials. The path was short: a developer opens the repo, trusts the workspace, and Amazon Q does the rest. Amazon has patched it.<\/p>\n<p>Tracked as\u00a0CVE-2026-12957\u00a0(CVSS 8.5), the bug sat in how Amazon&#8217;s AI coding assistant handled Model Context Protocol (MCP) servers.<\/p>\n<p>Wiz Research, which found and reported it, showed that a single config file dropped in a repo was enough to go from git clone to cloud compromise.<\/p>\n<p>How the attack worked<\/p>\n<p>Amazon Q read an MCP configuration file,\u00a0.amazonq\/mcp.json, from the open workspace and launched the servers it defined. MCP servers are local processes that an AI assistant can spawn to reach databases, APIs, or build tools, so starting one means running commands on the machine.<\/p>\n<p>Those processes inherited the developer&#8217;s full environment. That usually means AWS keys, cloud CLI tokens, API secrets, and SSH agent sockets.<\/p>\n<p>Put the two together, and a file sitting in a cloned repo could run arbitrary code with the developer&#8217;s live cloud session attached. No password, no second sign-in.<\/p>\n<p>In its proof of concept, Wiz had the file run\u00a0aws sts get-caller-identity\u00a0and ship the output to an attacker server, capturing the active AWS session. What comes next depends on that developer&#8217;s cloud permissions: backdoor an IAM user for persistence, reach internal services, or pivot toward production.<\/p>\n<p>AWS and Wiz frame the consent step differently. Amazon&#8217;s\u00a0advisory\u00a0says the user has to trust the workspace when prompted, and CVSS rates the user interaction as passive.<\/p>\n<p>Wiz reported there was no separate consent step for the MCP servers themselves before the fix. The patch closes that gap: Amazon Q now flags an untrusted MCP server and lets the developer reject the command before it runs.<\/p>\n<p>The flaw lives in\u00a0Language Servers for AWS, the runtime that powers Amazon Q across VS Code, JetBrains, Eclipse, and Visual Studio. All four plugins bundle it, so all four were exposed by versions that shipped an older copy.<\/p>\n<p>What to do<\/p>\n<p>Update. CVE-2026-12957 is fixed in Language Servers for AWS 1.65.0, but AWS&#8217;s\u00a0bulletin\u00a0tells customers to move to 1.69.0.<\/p>\n<p>That build also closes a second issue,\u00a0CVE-2026-12958, a missing symlink check that could allow arbitrary file writes outside the workspace trust boundary.<\/p>\n<p>The patched plugin minimums:<\/p>\n<p>  VS Code: 2.20 or later<br \/>\n  JetBrains: 4.3 or later<br \/>\n  Eclipse: 2.7.4 or later<br \/>\n  Visual Studio toolkit: 1.94.0.0 or later<\/p>\n<p>The language server auto-updates unless the network blocks it, and reloading the IDE pulls the latest build.<\/p>\n<p>There is no known public exploitation; CISA&#8217;s ADP entry for CVE-2026-12957 lists it as none. Wiz found the flaw through research and disclosed it in coordination with Amazon, reporting it on April 20 and seeing a fix on May 12, ahead of the June 26 public write-up.<\/p>\n<p>A pattern, not a one-off<\/p>\n<p>Amazon Q is not the first coding assistant to trip over MCP trust. The bugs are not identical, but they rhyme: project configuration turns into executable behavior, and the trust checks around that handoff keep failing.<\/p>\n<p>Claude Code\u00a0(CVE-2025-59536) and\u00a0Cursor\u00a0(CVE-2025-54136) both had project-level MCP config that led to command execution.\u00a0Windsurf\u00a0(CVE-2026-30615) reached the same end by a different path, with attacker-controlled content rewriting the local MCP config to register a malicious server.<\/p>\n<p>The convenience of letting a project folder configure an AI agent is also the attack surface. Repo-carried config is untrusted input. Turning it into a running process should take an explicit yes.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP Configs https:\/\/thehackernews.com\/2026\/06\/amazon-q-developer-flaw-could-let.html Publish&#8230;<\/p>\n","protected":false},"author":1,"featured_media":237752,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEig3gygt20RdznayWN2yru6wSgNt8CSdr16F8I-naxtPn837cr6v0uV0bXdhz36P1XYrpnjmzDXTAtH0wa43Me8rqD2hvET-xQP0ndoX-ddXsypZCjSSNJUqmfl69g96R6yMiUqgXE_NGAL8bl2z6lYutrgKiY74tNIafz_xRsNsJQSB9s_9lSHiybX2kQ\/s1600\/aws.jpg","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[26,27],"class_list":["post-237751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-ai","tag-vulnerability"],"_links":{"self":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/237751"}],"collection":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=237751"}],"version-history":[{"count":1,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/237751\/revisions"}],"predecessor-version":[{"id":237753,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/237751\/revisions\/237753"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/237752"}],"wp:attachment":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=237751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=237751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=237751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}