CVE-2026-48122
JSON

5.4medium

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

Severity
5.4medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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

Product or packageVersionsReported by
Shopify ruby-lsp< 0.10.4CVE List

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Ruby LSP es una implementación del protocolo del servidor de lenguaje para Ruby. Varias configuraciones a nivel de espacio de trabajo en la extensión Ruby LSP de VS Code anteriores a la versión 0.10.4 podrían anular la ruta al ejecutable de Ruby, los ejecutables del gestor de versiones o el ’Gemfile’ de Bundler utilizado al inicio. Un repositorio malicioso que contuviera un ’.vscode/settings.json’ podría establecer estos valores a objetivos controlados por el atacante. Abrir y confiar en el repositorio ejecutaría entonces código con los privilegios del desarrollador. El gem de Ruby LSP y los clientes del servidor de lenguaje en otros editores no se ven afectados. La versión 0.10.4 de la extensión Ruby LSP de VS Code corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48122 changed 2026-08-12CVE Terms of Use
NVDCVE-2026-48122 changed 2026-10-23Public domain