CVE-2026-34060 Details
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.
A vulnerability in the Shopify Ruby LSP Visual Studio Code extension, affecting versions prior to 0.10.2, allows for arbitrary Ruby code execution. This issue arises because the 'rubyLsp.branch' workspace setting was improperly sanitized before being added to a generated Gemfile. When a user opens a project with a malicious '.vscode/settings.json' file, the unsanitized code execution can occur. This vulnerability is also present in other editors that support similar workspace settings, as the interpolation is handled by the language server.
Users of the Shopify Ruby LSP VS Code extension should update to version 0.10.2 or later. For those using the 'ruby-lsp' gem, the update should be to version 0.26.9 or later. Instructions for updating the VS Code extension can be found in the Visual Studio Code documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9 | [email protected] | Release Notes |
| https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shopify ruby lsp | < 0.10.2 < 0.26.9 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | CISA-ADP |
| Mar 31, 2026 | New CVE Received | [email protected] |