Skip to main content
← All vulnerabilities
CVE-2026-34060GHSA-C4R5-FXQW-VH93

Ruby LSP has arbitrary code execution through branch setting

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.26.9, 0.10.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • Shopify ruby-lsp

    fixed in 0.26.9

  • Shopify Shopify.ruby-lsp

    fixed in 0.10.2

  • ruby-lspRubyGems

    fixed in 0.26.9

References 2

GitHub · Shopify/ruby-lsp