{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.26.9"
              },
              {
                "fixed": "0.10.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "29ecc8d29dde87e6157a75bc2f0a3eb62db02ea3"
            },
            {
              "fixed": "9e53e7e8366a13e44079f252ee8e5d5000803fe2"
            }
          ],
          "repo": "https://github.com/shopify/ruby-lsp",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c4r5-fxqw-vh93"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34060.json"
  },
  "details": "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.",
  "id": "CVE-2026-34060",
  "modified": "2026-04-01T23:08:43.851146909Z",
  "published": "2026-03-31T01:59:51.170Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34060.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34060"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Ruby LSP has arbitrary code execution through branch setting"
}