Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34060: CWE-94: Improper Control of Generation of Code ('Code Injection') in Shopify ruby-lsp

0
High
VulnerabilityCVE-2026-34060cvecve-2026-34060cwe-94
Published: Tue Mar 31 2026 (03/31/2026, 01:59:51 UTC)
Source: CVE Database V5
Vendor/Project: Shopify
Product: 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

AILast updated: 04/08/2026, 00:00:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses