Remote Code Execution Vulnerability in Ruby LSP by Shopify
CVE-2026-34060
7.1HIGH
What is CVE-2026-34060?
Ruby LSP, which facilitates the Language Server Protocol for Ruby development, has a vulnerability that allows the execution of arbitrary Ruby code due to improper handling of user-configured settings. Specifically, in versions prior to 0.10.2 of Shopify.ruby-lsp and 0.26.9 of ruby-lsp, the rubyLsp.branch setting can inadvertently incorporate unsanitized data into a generated Gemfile. This flaw can be exploited when a user opens a project with a malicious .vscode/settings.json file, leading to significant security risks. It is essential for users to upgrade to the latest versions to eliminate this risk.
Affected Version(s)
ruby-lsp < 0.26.9
Shopify.ruby-lsp < 0.10.2
