CVE-2026-34060 HIGH

CVE-2026-34060: Ruby LSP has arbitrary code execution through branch setting

Vendor Shopify
Product ruby-lsp
Weakness CWE-94 · Code injection
Published March 31, 2026
Last update April 2, 2026

CVSS base score

7.1/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 31, 2026 CVE published
April 2, 2026 Record updated

Related vulnerabilities

04Related CVE