CVE-2026-48122: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Shopify ruby-lsp
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.
AI Analysis
Technical Summary
Ruby LSP is a language server protocol implementation for Ruby. In the VS Code extension before version 0.10.4, several workspace-level settings could be overridden by a malicious .vscode/settings.json file in a repository. This includes paths to the Ruby executable, version manager executables, or Bundler Gemfile used at startup. If a developer opens and trusts such a repository, the attacker-controlled settings could lead to execution of arbitrary code with the developer's privileges. The vulnerability is specific to the VS Code extension and does not affect the Ruby LSP gem or other editor clients. The issue is fixed in version 0.10.4 of the Ruby LSP VS Code extension.
Potential Impact
An attacker who can convince a developer to open and trust a malicious repository containing a crafted .vscode/settings.json file can execute arbitrary code with the developer's privileges. This could lead to compromise of the developer's environment and potentially further access depending on the developer's permissions. The vulnerability requires user interaction (opening and trusting the repository) and local privileges (developer privileges).
Mitigation Recommendations
Upgrade the Ruby LSP VS Code extension to version 0.10.4 or later, which fixes this vulnerability. Avoid opening and trusting repositories from untrusted sources. Since no official patch link or vendor advisory is provided, check the VS Code marketplace or Shopify's official channels for the update. Patch status is not yet confirmed by a vendor advisory; verify current remediation guidance from the vendor.
CVE-2026-48122: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Shopify ruby-lsp
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.
CVSS v4.0
Score 5.4medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Ruby LSP is a language server protocol implementation for Ruby. In the VS Code extension before version 0.10.4, several workspace-level settings could be overridden by a malicious .vscode/settings.json file in a repository. This includes paths to the Ruby executable, version manager executables, or Bundler Gemfile used at startup. If a developer opens and trusts such a repository, the attacker-controlled settings could lead to execution of arbitrary code with the developer's privileges. The vulnerability is specific to the VS Code extension and does not affect the Ruby LSP gem or other editor clients. The issue is fixed in version 0.10.4 of the Ruby LSP VS Code extension.
Potential Impact
An attacker who can convince a developer to open and trust a malicious repository containing a crafted .vscode/settings.json file can execute arbitrary code with the developer's privileges. This could lead to compromise of the developer's environment and potentially further access depending on the developer's permissions. The vulnerability requires user interaction (opening and trusting the repository) and local privileges (developer privileges).
Mitigation Recommendations
Upgrade the Ruby LSP VS Code extension to version 0.10.4 or later, which fixes this vulnerability. Avoid opening and trusting repositories from untrusted sources. Since no official patch link or vendor advisory is provided, check the VS Code marketplace or Shopify's official channels for the update. Patch status is not yet confirmed by a vendor advisory; verify current remediation guidance from the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T18:46:58.290Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7662babf8831d5394db830
Added to database: 08/07/2026, 22:56:58 UTC
Last enriched: 08/15/2026, 14:42:46 UTC
Last updated: 09/08/2026, 01:52:14 UTC
Views: 59
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.