Incomplete fix for CVE-2026-12957: incorrect MCP server consent match logic in Language Servers for AWS
Description
Language Servers for AWS is the open-source language server that powers Amazon Q Developer agentic chat in the Amazon Q Developer IDE plugins and is published on npm as @aws/lsp-codewhisperer. An issue exists where, under certain circumstances, a changed or copied workspace MCP server configuration is accepted under an earlier consent approval in Language Servers for AWS.
Impact
An actor who can modify the MCP configuration of a repository a developer uses might execute arbitrary code with the developer's OS user privileges, without a new consent prompt. The issue requires that the developer previously approved an MCP server with the same name, either in the same workspace with a different configuration, or with an identical configuration in a different workspace, where a relative command could run different workspace-local content.
Impacted versions: >= 1.65.0 AND < 1.71.0; @aws/lsp-codewhisperer >= 0.0.113 AND < 0.0.120
Patches
This issue has been addressed in Language Servers for AWS version 1.71.0 [github.com/
We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Amazon Q Developer IDE plugin users should restart their IDE to receive the latest language server and keep the plugin up to date.
Workarounds
There is no workaround available.
References
If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.