Incomplete fix for CVE-2026-12958: arbitrary file creation outside the workspace trust boundary in Language Servers for AWS
Description
Language Servers for AWS (the Amazon-Q-Developer/language-servers project) 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. An issue exists where, under certain circumstances, the workspace boundary check in Language Servers for AWS treated a symbolic link whose target did not yet exist as an in-workspace path, allowing a file to be created outside the workspace without the expected out-of-workspace approval prompt.
Impact
An actor who can place a crafted symbolic link and content in a repository that a developer opens might cause the agentic chat file tools to create a new file outside the workspace with the developer's operating system user privileges, without the approval prompt. The destination file must not already exist, and its parent directory must exist and be writable. This finding does not establish silent overwrite of an existing target. The actor needs no access to the developer's workstation, but the developer must open the workspace and use agentic chat. Depending on the destination and how it is later processed, possible follow-on outcomes include code execution as the developer.
Impacted versions: 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.69.0 are affected by CVE-2026-12958 [cve.org/
Patches
This issue has been addressed in Language Servers for AWS version 1.74.0 [github.com/
The fix resolves symbolic links before checking workspace boundaries, including links whose target file does not yet exist. Creating a file through such a link to an unapproved destination outside the workspace now requires user approval. This fix does not add an approval requirement for ordinary file creation inside the workspace.
We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Amazon Q Developer plugin users should restart their IDE to receive the latest version and keep their 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.
Acknowledgement
We would like to thank Kingsley Olukanni (GitHub: babakizo420) for collaborating on this issue through the coordinated vulnerability disclosure process.