CVE-2026-34060
Ruby LSP is an implementation of the language server protocol for Ruby ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by Ruby Advisory DB. Rated lower by GHSA (high).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| rubygems::Ruby Advisory Database | ruby-lsp | >= 0.26.9 |
| debian 14 | ruby-ruby-lsp | 0.26.9-0.1 |
| rubygems::GitHub Security Advisory RubyGems | ruby-lsp | 0.26.9 |
References
- https://github.com/Shopify/ruby-lsp
- https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9
- https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93
- https://github.com/advisories/GHSA-c4r5-fxqw-vh93
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-lsp/CVE-2026-34060.yml
- https://nvd.nist.gov/vuln/detail/CVE-2026-34060
- https://www.tenable.com/cve/CVE-2026-34060