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.
Published: 2026-08-07
Score: 5.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Sat, 08 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Shopify
Shopify ruby-lsp
Vendors & Products Shopify
Shopify ruby-lsp

Fri, 07 Aug 2026 23:00:00 +0000

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'}


Subscriptions

Shopify Ruby-lsp
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T22:40:23.811Z

Reserved: 2026-05-20T18:46:58.290Z

Link: CVE-2026-48122

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-08T00:30:17Z

Weaknesses
  • CWE-78

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