{"id":"CVE-2026-34060","published":"2026-03-31T01:59:51Z","modified":"2026-04-02T14:51:58Z","title":"Ruby LSP has arbitrary code execution through branch setting","vendor":"Shopify","product":"ruby-lsp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00508,"percentile":0.44316,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9","tags":["x_refsource_MISC"]}],"priority":{"score":13.8,"factors":[{"name":"EPSS percentile","points":8.86},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"shopify","affectedVersions":[{"vendor":"Shopify","product":"ruby-lsp","versions":["< 0.26.9"]},{"vendor":"Shopify","product":"Shopify.ruby-lsp","versions":["< 0.10.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-02T14:51:08.644486Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"ruby-lsp","vulnerableRanges":["<0.26.9"],"patched":["0.26.9"],"from":["GHSA-c4r5-fxqw-vh93"],"provenance":"source"}],"summary":{"text":"The Ruby LSP language server for Ruby (the Shopify.ruby-lsp VS Code extension and the ruby-lsp gem) interpolates the rubyLsp.branch workspace setting into a generated Gemfile without sanitization. An attacker can achieve arbitrary Ruby code execution by supplying a malicious .vscode/settings.json in a project, which requires only local access and the victim opening that project in VS Code, with no authentication and the user being prompted to open the project.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:29Z"},"euvd":{"id":"EUVD-2026-17282","exploited":false,"provenance":"source"}}