Issue with Language Servers for AWS - MCP consent, command execution and workspace boundary issues (CVE-2026-137931, CVE-2026-137932, CVE-2026-137933, CVE-2026-137934, CVE-2026-137935)
Bulletin ID: 2026-206-AWS
Scope: AWS
Content Type: Important (requires attention)
Publication Date: 12/01/2026 12:00 PM PST
Description:
Language Servers for AWS provides the underlying language-server runtime for Amazon Q Developer's AI coding assistance. The runtime powers the IDE plugins for Visual Studio Code, JetBrains, Eclipse, and Visual Studio. It is published on npm as @aws/lsp-codewhisperer.
We identified CVE-2026-137931, an issue in the Model Context Protocol (MCP) server consent check in Language Servers for AWS. It affects versions 1.65.0 and later, but before 1.78.0. With registry mode active, the issue affects previously approved workspace MCP servers whose registry entries resolve to npm or PyPI. The consent fingerprint did not cover all environment variables and headers merged into the server’s launch configuration. An actor who can change the environment variables of that server’s configuration might execute arbitrary code on the developer’s workstation without a new consent prompt. This issue is a remaining issue in the fix for CVE-2026-12957.
We identified CVE-2026-137932, an issue in the MCP server consent check in Language Servers for AWS. It affects versions 1.65.0 and later, but before 1.71.0. For a matching MCP server name, the consent check accepted either the configuration fingerprint or the workspace instead of requiring both. An actor could reuse earlier approval by changing that server’s configuration in the same workspace or by copying an approved configuration with a relative command into another workspace, where it could run different workspace-local content. This might allow arbitrary code execution on the developer’s workstation without a new consent prompt. This issue is a remaining issue in the fix for CVE-2026-12957.
We identified CVE-2026-137933, an issue in the code review tool in Language Servers for AWS before version 1.81.0. The tool passed file paths supplied by the agent to a shell command without neutralizing special characters. Crafted content in a workspace opened by a user could cause the agent to run arbitrary commands with that user’s privileges. The user does not need to request a code review. Among Amazon Q Developer IDE plugins, this issue affects only Visual Studio Code and JetBrains. Eclipse and Visual Studio are not affected because they do not register the affected code review tool.
We identified CVE-2026-137934, an issue in the shell command tool’s workspace boundary check in Language Servers for AWS before version 1.81.0. The check did not resolve symbolic links. A crafted symbolic link in a workspace opened by a user could allow the agent to read outside files without the expected approval prompt. The demonstrated bypass affected commands the tool classified as read-only. Commands classified as modifying, destructive or network-capable still required approval. The read returns file contents to the chat and does not by itself deliver them to the actor.
We identified CVE-2026-137935, an issue in the workspace boundary check used by the agentic chat file tools in Language Servers for AWS. It affects versions 1.69.0 and later, but before 1.74.0. The check treated a symbolic link inside the workspace as an in-workspace path when its outside target did not yet exist. If the agent created a file through that link, the write could occur outside the workspace without the expected approval prompt. The destination file must not already exist, and its parent directory must exist and be writable. It is a remaining issue in the fix for CVE-2026-12958.
We identified these issues after we published Security Bulletin 2026-047-AWS for CVE-2026-12957 and CVE-2026-12958.
Impacted versions:
- CVE-2026-137931 (MCP consent fingerprint omission): Language Servers for AWS >= 1.65.0 and < 1.78.0 (npm package @aws/lsp-codewhisperer >= 0.0.113 AND < 0.0.127)
- CVE-2026-137932 (MCP consent match logic): Language Servers for AWS >= 1.65.0 and < 1.71.0 (npm package @aws/lsp-codewhisperer >= 0.0.113 AND < 0.0.120)
- CVE-2026-137933 (Code review command injection): Language Servers for AWS < 1.81.0 (npm package @aws/lsp-codewhisperer >= 0.0.65 AND < 0.0.130)
- CVE-2026-137934 (Shell command symbolic link bypass): Language Servers for AWS < 1.81.0 (npm package @aws/lsp-codewhisperer >= 0.0.33 AND < 0.0.130)
- CVE-2026-137935 (Dangling symbolic link write): Language Servers for AWS >= 1.69.0 and < 1.74.0 (npm package @aws/lsp-codewhisperer >= 0.0.117 AND < 0.0.123)
Versions earlier than 1.65.0 are also affected by CVE-2026-12957, and versions earlier than 1.69.0 by CVE-2026-12958. The Amazon Q Developer IDE plugin version alone does not show which version of Language Servers for AWS is in use; see Resolution.
Resolution:
These issues have been addressed in the following versions of Language Servers for AWS:
- CVE-2026-137931 (MCP consent fingerprint omission): This issue has been addressed in Language Servers for AWS version 1.78.0 and the npm package @aws/lsp-codewhisperer 0.0.127.
- CVE-2026-137932 (MCP consent match logic): This issue has been addressed in Language Servers for AWS version 1.71.0 and the npm package @aws/lsp-codewhisperer 0.0.120.
- CVE-2026-137933 (Code review command injection): This issue has been addressed in Language Servers for AWS version 1.81.0 and the npm package @aws/lsp-codewhisperer 0.0.130.
- CVE-2026-137934 (Shell command symbolic link bypass): This issue has been addressed in Language Servers for AWS version 1.81.0 and the npm package @aws/lsp-codewhisperer 0.0.130.
- CVE-2026-137935 (Dangling symbolic link write): This issue has been addressed in Language Servers for AWS version 1.74.0 and the npm package @aws/lsp-codewhisperer 0.0.123.
We recommend upgrading to the latest version of Language Servers for AWS and ensuring any forked or derivative code is patched to incorporate the new fixes. The Amazon Q Developer IDE plugins normally load the latest compatible Language Servers for AWS runtime when the IDE starts. Downloading an updated runtime requires network access. Keep your plugin up to date. Restart your IDE. Installations without network access, pinned to a specific runtime version, or using a fallback runtime may not update automatically.
Workarounds:
No workarounds are available.
References:
- CVE-2026-137931
- CVE-2026-137932
- CVE-2026-137933
- CVE-2026-137934
- CVE-2026-137935
- CVE-2026-12957
- CVE-2026-12958
- GHSA-g7wj-xm2j-mhq3
- GHSA-jx5v-92wj-37jp
- GHSA-x53h-xqf8-8m93
- GHSA-j73h-965f-wh4f
- GHSA-m5cv-9xgc-5v4v
Acknowledgement:
We would like to thank Kingsley Olukanni (GitHub: @babakizo420) and zx (Jace) (GitHub: @manus-use) for collaborating on this issue through the coordinated vulnerability disclosure process.
Please email aws-security@amazon.com with any security questions or concerns.