Skip to content
OpenAdvisories
High · 7.1 CVE-2026-34060 EUVD-2026-17282GHSA-c4r5-fxqw-vh93

Ruby LSP has arbitrary code execution through branch setting

Published Mar 31, 2026 · Updated Apr 2, 2026 · Assigned by GitHub_M

Description

Ruby LSP is an implementation of the language server protocol for Ruby. Prior to Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9, the rubyLsp.branch VS Code workspace setting was interpolated without sanitization into a generated Gemfile, allowing arbitrary Ruby code execution when a user opens a project containing a malicious .vscode/settings.json. This issue has been patched in Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9.

Affected products

VendorProductAffectedFixed
Shopify ruby-lsp < 0.26.9 —
Shopify Shopify.ruby-lsp < 0.10.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-ruby-lsp 0.26.9-0.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems ruby-lsp < 0.26.9 0.26.9 GHSA-c4r5-fxqw-vh93

References