# CVE-2026-34060: Ruby LSP has arbitrary code execution through branch setting

> CVE-2026-34060: Ruby LSP has arbitrary code execution through branch setting. CVSS 9.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-34060
Last updated: 2026-06-17T10:38:29Z

- Published: 2026-03-31 01:59 UTC · Updated: 2026-06-17 10:38 UTC · Assigner: GitHub\_M
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.48%, 41th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-94

## 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.

## Affected vendors and products

- Shopify: ruby-lsp
- Shopify: Shopify.ruby-lsp

## Tracked companies

- [Shopify](https://rewindex.com/company/shopify.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-34060)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-34060)
- [https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9](https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9)
- [https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93](https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-34060 · Markdown: https://rewindex.com/cve/CVE-2026-34060.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-34060 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:07.255Z
