Workspace boundary bypass via symbolic link in the shell command tool 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, the workspace boundary check of the shell command tool in Language Servers for AWS did not resolve symbolic links before deciding whether a path was inside the workspace.
Impact
An actor who can place a crafted symbolic link in a workspace that a user opens might cause the agent to read files outside the workspace without the expected approval prompt. The link could appear to be inside the workspace even though its target was outside it. The demonstrated approval bypass affected commands the shell tool classified as read-only. Commands classified as modifying, destructive or network-capable still required approval. The read returns file contents to the chat; it does not by itself deliver those contents to the actor. The actor would need an additional step to obtain them.
Impacted versions: < 1.81.0; @aws/lsp-codewhisperer >= 0.0.33 AND < 0.0.130
Patches
This issue has been addressed in Language Servers for AWS version 1.81.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 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 zx (Jace) — GitHub: @manus-use for collaborating on this issue through the coordinated vulnerability disclosure process.