CVE-2026-34060

Ruby LSP has arbitrary code execution through branch setting

Published Mar 31, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c4r5-fxqw-vh93 Ruby LSP has arbitrary code execution through branch setting
History
Type Values Removed Values Added
First Time appeared Shopify ruby Lsp
CPEs cpe:2.3:a:shopify:ruby_lsp:*:*:*:*:*:ruby:*:*
cpe:2.3:a:shopify:ruby_lsp:*:*:*:*:*:visual_studio_code:*:*
Vendors & Products Shopify ruby Lsp
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Shopify
Shopify ruby-lsp
Shopify shopify.ruby-lsp
Vendors & Products Shopify
Shopify ruby-lsp
Shopify shopify.ruby-lsp
Type Values Removed Values Added
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.
Title Ruby LSP has arbitrary code execution through branch setting
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 7.1, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 2, 2026, 2:51 PM
Reserved
Mar 25, 2026, 4:21 PM
Status
Analyzed
Published
Mar 31, 2026, 3:15 AM
Modified
Jun 17, 2026, 10:38 AM