Skip to content
Heist/ feed
Back to feed
Medium

ruby-ruby-lsp — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-48122

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.

Products
ruby-ruby-lsp
Affected versions
0.26.9-0.1
Fixed versions
Not specified
CVEs
CVE-2026-48122
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:06 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-48122

core-osv · Original source

Published 7 Aug 2026, 23:17 UTC

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.

osv:UBUNTU-CVE-2026-48122

ruby-ruby-lsp

Fixed versions: Not specified

Complete source record
{
  "id": "b1d1d6d892da96f66505cefde6cc6033f3b54b2c3d615d0f37e2ff5853e935ba",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48122",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-48122",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-48122",
    "products": [
      {
        "name": {
          "value": "ruby-ruby-lsp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.26.9-0.1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-48122",
      "aliases": [
        "UBUNTU-CVE-2026-48122"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-ruby-lsp",
            "purl": "pkg:deb/ubuntu/ruby-ruby-lsp?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.26.9-0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48122.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-ruby-lsp",
                "binary_version": "0.26.9-0.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:21.551420375Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-48122"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-48122",
        "https://www.cve.org/CVERecord?id=CVE-2026-48122",
        "https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-48122",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360431,
  "published_at": "2026-08-07T23:17:00+00:00"
}