CVE-2026-34060CWE-94

Ruby LSP has arbitrary code execution through branch setting

High · published March 31, 2026

CVSS v4.0
7.1
EPSS
1%
Percentile
47.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
7.1 · HIGH
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
EPSS
0.00597 · 47.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-03-31T01:59Z
EPSS history
Timeline
  • 31 MAR 01:59Z
    Ruby LSP has arbitrary code execution through branch setting
    cvelistv5