Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension
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
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-48122
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 01:39 UTC · Revision 1
Source evidence
Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension
core-osv · Original sourcePublished 7 Aug 2026, 22:40 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:CVE-2026-48122
Complete source record
{
"id": "dbc6a6736ff836212039926bfef6ba899616abdcef72f835bac78f8963f104a6",
"url": "https://osv.dev/vulnerability/CVE-2026-48122",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension",
"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:CVE-2026-48122",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-48122",
"aliases": [
"CVE-2026-48122",
"GHSA-2x7g-8mp4-572w"
],
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/shopify/ruby-lsp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "bea9c5acc7f477d4ae09c8ca219a5c69aa651af3"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.10.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.10.4"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"vscode-ruby-lsp-v0.10.3",
"v0.26.9",
"vscode-ruby-lsp-v0.10.2",
"vscode-ruby-lsp-v0.10.1",
"v0.26.8",
"v0.26.7",
"v0.26.6",
"vscode-ruby-lsp-v0.10.0",
"v0.26.5",
"vscode-ruby-lsp-v0.9.33",
"v0.26.4",
"v0.26.3",
"v0.26.2",
"vscode-ruby-lsp-v0.9.32",
"vscode-ruby-lsp-v0.9.31",
"v0.26.1",
"v0.26.0",
"vscode-ruby-lsp-v0.9.30",
"vscode-ruby-lsp-v0.9.29",
"v0.25.0",
"v0.24.2",
"vscode-ruby-lsp-v0.9.28",
"v0.24.1",
"v0.24.0",
"vscode-ruby-lsp-v0.9.27",
"v0.23.24",
"vscode-ruby-lsp-v0.9.26",
"v0.23.23",
"v0.23.22",
"vscode-ruby-lsp-v0.9.25",
"v0.23.21",
"v0.23.20",
"vscode-ruby-lsp-v0.9.24",
"v0.23.19",
"v0.23.18",
"vscode-ruby-lsp-v0.9.23",
"vscode-ruby-lsp-v0.9.22",
"v0.23.17",
"vscode-ruby-lsp-v0.9.21",
"vscode-ruby-lsp-v0.9.20",
"v0.23.16",
"vscode-ruby-lsp-v0.9.19",
"vscode-ruby-lsp-v0.9.18",
"vscode-ruby-lsp-v0.9.17",
"v0.23.15",
"vscode-ruby-lsp-v0.9.16",
"vscode-ruby-lsp-v0.9.15",
"vscode-ruby-lsp-v0.9.14",
"v0.23.14",
"vscode-ruby-lsp-v0.9.13",
"v0.23.13",
"vscode-ruby-lsp-v0.9.12",
"vscode-ruby-lsp-v0.9.11",
"vscode-ruby-lsp-v0.9.10",
"vscode-ruby-lsp-v0.9.9",
"vscode-ruby-lsp-v0.9.8",
"v0.23.12",
"vscode-ruby-lsp-v0.9.7",
"vscode-ruby-lsp-v0.9.6",
"vscode-ruby-lsp-v0.9.5",
"v0.23.11",
"v0.23.10",
"vscode-ruby-lsp-v0.9.3",
"vscode-ruby-lsp-v0.9.2",
"v0.23.9",
"vscode-ruby-lsp-v0.8.20",
"v0.23.8",
"vscode-ruby-lsp-v0.8.19",
"v0.23.7",
"vscode-ruby-lsp-v0.8.18",
"v0.23.6",
"v0.23.5",
"v0.23.4",
"v0.23.3",
"vscode-ruby-lsp-v0.8.17",
"v0.23.2",
"v0.23.1",
"v0.23.0",
"vscode-ruby-lsp-v0.8.16",
"vscode-ruby-lsp-v0.8.15",
"vscode-ruby-lsp-v0.8.14",
"v0.22.1",
"v0.22.0",
"vscode-ruby-lsp-v0.8.13",
"v0.21.3",
"v0.21.2",
"v0.21.1",
"v0.21.0",
"vscode-ruby-lsp-v0.8.12",
"vscode-ruby-lsp-v0.8.10",
"vscode-ruby-lsp-v0.8.9",
"vscode-ruby-lsp-v0.8.8",
"vscode-ruby-lsp-v0.8.7",
"vscode-ruby-lsp-v0.8.6",
"vscode-ruby-lsp-v0.8.5",
"v0.20.1",
"v0.20.0",
"vscode-ruby-lsp-v0.8.4",
"vscode-ruby-lsp-v0.8.3",
"v0.19.1",
"v0.19.0",
"vscode-ruby-lsp-v0.8.2",
"v0.18.4",
"v0.18.3",
"v0.18.2",
"vscode-ruby-lsp-v0.8.1",
"v0.18.1",
"vscode-ruby-lsp-v0.8.0",
"v0.18.0",
"vscode-ruby-lsp-v0.7.20",
"vscode-ruby-lsp-v0.7.19",
"v0.17.17",
"vscode-ruby-lsp-v0.7.18",
"vscode-ruby-lsp-v0.7.17",
"v0.17.16",
"vscode-ruby-lsp-v0.7.16",
"v0.17.15",
"v0.17.14",
"v0.17.13",
"vscode-ruby-lsp-v0.7.15",
"v0.17.12",
"v0.17.11",
"v0.17.10",
"v0.17.9",
"vscode-ruby-lsp-v0.7.14",
"v0.17.8",
"vscode-ruby-lsp-v0.7.13",
"vscode-ruby-lsp-v0.7.12",
"v0.17.7",
"vscode-ruby-lsp-v0.7.11",
"v0.17.6",
"v0.17.5",
"vscode-ruby-lsp-v0.7.10",
"vscode-ruby-lsp-v0.7.8",
"vscode-ruby-lsp-v0.7.6",
"vscode-ruby-lsp-v0.7.5",
"v0.17.4",
"v0.17.3",
"vscode-ruby-lsp-v0.7.4",
"v0.17.2",
"vscode-ruby-lsp-v0.7.2",
"v0.17.1",
"v0.17.0",
"vscode-ruby-lsp-v0.7.1",
"vscode-ruby-lsp-v0.7.0",
"v0.16.7",
"vscode-ruby-lsp-v0.5.21",
"v0.16.6",
"vscode-ruby-lsp-v0.5.20",
"v0.16.5",
"vscode-ruby-lsp-v0.5.19",
"vscode-ruby-lsp-v0.5.18",
"v0.16.4",
"v0.16.3",
"v0.16.2",
"v0.16.1",
"v0.16.0",
"vscode-ruby-lsp-v0.5.17",
"vscode-ruby-lsp-v0.5.16",
"v0.15.0",
"vscode-ruby-lsp-v0.5.15",
"v0.14.6",
"vscode-ruby-lsp-v0.5.14",
"vscode-ruby-lsp-v0.5.13",
"v0.14.5",
"vscode-ruby-lsp-v0.5.12",
"v0.14.4",
"vscode-ruby-lsp-v0.5.11",
"v0.14.3",
"v0.14.2",
"v0.14.1",
"v0.14.0",
"v0.13.4",
"v0.13.3",
"v0.13.2",
"v0.13.1",
"v0.13.0",
"v0.12.5",
"v0.12.4",
"v0.12.3",
"v0.12.2",
"v0.12.1",
"v0.12.0",
"v0.11.2",
"v0.11.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.9.4",
"v0.9.3",
"v0.9.2",
"v0.9.1",
"v0.9.0",
"v0.8.1",
"v0.8.0",
"v0.7.6",
"v0.7.5",
"v0.7.4",
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7.0",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.5.1",
"v0.5.0",
"v0.4.5",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.8",
"v0.3.7",
"v0.3.6",
"v0.3.5",
"v0.3.4",
"v0.3.3",
"v0.3.0",
"v0.2.0",
"v0.1.0",
"v0.0.4",
"v0.0.3",
"v0.0.2",
"v0.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48122.json"
}
}
],
"modified": "2026-10-28T02:30:45.817190420Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48122.json",
"https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w",
"https://nvd.nist.gov/vuln/detail/CVE-2026-48122"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48122.json"
}
},
"related_cves": [
{
"value": "CVE-2026-48122",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513940,
"published_at": "2026-08-07T22:40:23.811+00:00"
}