Vulnerability · Published Aug 7, 2026 · Assigned by GitHub_M

CVE-2026-48122Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension

Medium 5.4

In plain English

A medium-severity OS command injection in ruby-lsp from Shopify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities).

Severity (CVSS 4.0)5.4Medium
Exploit odds (30 days)0.2%top 92.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Ruby LSP is an implementation of the language server protocol for Ruby. Several workspace-level settings in the Ruby LSP VS Code extension prior to version 0.10.4 could override the path to the Ruby executable, the version manager executables, or the Bundler `Gemfile` used at startup. A malicious repository containing a `.vscode/settings.json` could set these values to attacker-controlled targets. Opening and trusting the repository would then execute code with the privileges of the developer. The Ruby LSP gem and clients of the language server in other editors are not affected. Version 0.10.4 of the Ruby LSP VS Code extension fixes the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:26.10ruby-ruby-lspno fix listedUBUNTU-CVE-2026-48122

Affected products (as reported)

VendorProductVersions
Shopify ruby-lsp < 0.10.4

Weakness: CWE-78 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References