CVE-2026-48122

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

Published Aug 7, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Ruby LSP VS Code extension allowed a malicious repository to supply a .vscode/settings.json file that could override the path to the Ruby executable, the version manager executables, or the Bundler Gemfile at startup. By setting these values to attacker‑controlled targets, opening and trusting the repository would execute arbitrary code under the developer’s account. The vulnerability is limited to the VS Code extension; the Ruby LSP gem and clients in other editors are not affected.

Affected Systems

The affected product is Shopify’s Ruby LSP VS Code extension. Versions prior to 0.10.4 are impacted. Users who have installed or are operating those older versions of the extension are at risk.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires a malicious repository containing crafted workspace settings; the attacker must get the developer to open and trust the repository, after which code runs with the developer’s privileges. The risk is therefore moderate to high if trusted, but the likelihood of exploitation in the wild appears limited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Ruby LSP VS Code extension to version 0.10.4 or newer
  • Avoid opening or trusting repositories that contain a .vscode/settings.json file from unverified sources
  • Consider temporarily disabling or uninstalling the Ruby LSP extension until a patch is applied

Generated by OpenCVE AI on August 8, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Shopify
Shopify ruby-lsp
Vendors & Products Shopify
Shopify ruby-lsp
Type Values Removed Values Added
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.
Title Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension
Weaknesses CWE-78
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2026, 10:15 PM
Reserved
May 20, 2026, 6:46 PM
Status
Awaiting Analysis
Published
Aug 7, 2026, 11:17 PM
Modified
Oct 23, 2026, 8:10 PM