CVE-2026-34060: CWE-94: Improper Control of Generation of Code ('Code Injection') in Shopify ruby-lsp
Ruby LSP is an implementation of the language server protocol for Ruby. Prior to Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9, the rubyLsp.branch VS Code workspace setting was interpolated without sanitization into a generated Gemfile, allowing arbitrary Ruby code execution when a user opens a project containing a malicious .vscode/settings.json. This issue has been patched in Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9.
AI Analysis
Technical Summary
Shopify ruby-lsp, an implementation of the language server protocol for Ruby, had a vulnerability (CWE-94) where the rubyLsp.branch VS Code workspace setting was unsafely interpolated into a generated Gemfile without sanitization. This flaw permitted arbitrary Ruby code execution triggered by opening a project with a crafted .vscode/settings.json file. The vulnerability affects versions before 0.10.2 (Shopify.ruby-lsp) and 0.26.9 (ruby-lsp). The issue has been addressed in the specified patched versions.
Potential Impact
An attacker who can cause a user to open a malicious project with a specially crafted .vscode/settings.json file can execute arbitrary Ruby code on the user's system. This could lead to compromise of the user's environment with the privileges of the user running the ruby-lsp process. The CVSS 4.0 score is 7.1 (high), reflecting the potential for significant impact through local code execution requiring user interaction.
Mitigation Recommendations
Users should upgrade to Shopify.ruby-lsp version 0.10.2 or ruby-lsp version 0.26.9 or later, where this vulnerability has been patched. No other mitigations are specified or required once patched. Patch status is confirmed by the vendor advisory embedded in the description.
CVE-2026-34060: CWE-94: Improper Control of Generation of Code ('Code Injection') in Shopify ruby-lsp
Description
Ruby LSP is an implementation of the language server protocol for Ruby. Prior to Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9, the rubyLsp.branch VS Code workspace setting was interpolated without sanitization into a generated Gemfile, allowing arbitrary Ruby code execution when a user opens a project containing a malicious .vscode/settings.json. This issue has been patched in Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Shopify ruby-lsp, an implementation of the language server protocol for Ruby, had a vulnerability (CWE-94) where the rubyLsp.branch VS Code workspace setting was unsafely interpolated into a generated Gemfile without sanitization. This flaw permitted arbitrary Ruby code execution triggered by opening a project with a crafted .vscode/settings.json file. The vulnerability affects versions before 0.10.2 (Shopify.ruby-lsp) and 0.26.9 (ruby-lsp). The issue has been addressed in the specified patched versions.
Potential Impact
An attacker who can cause a user to open a malicious project with a specially crafted .vscode/settings.json file can execute arbitrary Ruby code on the user's system. This could lead to compromise of the user's environment with the privileges of the user running the ruby-lsp process. The CVSS 4.0 score is 7.1 (high), reflecting the potential for significant impact through local code execution requiring user interaction.
Mitigation Recommendations
Users should upgrade to Shopify.ruby-lsp version 0.10.2 or ruby-lsp version 0.26.9 or later, where this vulnerability has been patched. No other mitigations are specified or required once patched. Patch status is confirmed by the vendor advisory embedded in the description.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-25T16:21:40.866Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69cc1e09e6bfc5ba1d33b7f9
Added to database: 3/31/2026, 7:18:33 PM
Last enriched: 4/8/2026, 12:00:45 AM
Last updated: 5/14/2026, 11:56:12 AM
Views: 95
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.
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.