CVE-2026-48122
MediumCVSS 5.4Exploitation Probability (EPSS)
Low risk3th percentile - higher than 3% of all known CVEs
Summary
Ruby LSP, an implementation of the language server protocol for Ruby, in the VS Code extension prior to version 0.10.4 has a vulnerability that allows overriding the path to the Ruby executable, version manager executables, or Bundler Gemfile. A malicious repository with a .vscode/settings.json could set these values to attacker-controlled targets, leading to code execution with developer privileges. Fixed in version 0.10.4.
Risk Assessment
An attacker could use a malicious repository to execute code on a developer's machine, potentially leading to compromise of the development environment.
Recommendation
Upgrade the Ruby LSP VS Code extension to version 0.10.4 or later.
Original NVD description (English source)
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.

