CVE-2026-59185 — Vulnerability in identrail/identrail — CVE Details
Identrail Cross-tenant IDOR: Client-supplied GitHub App installation_id is bound to the caller's workspace without ownership verification
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.36%). Schedule for your next planned update.
Does your project use an affected github.com/identrail/identrail version?
Paste your go.sum to check it for CVE-2026-59185 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
identrail's GitHub App connection-completion endpoint binds a fully client-supplied installation_id to the caller's workspace without verifying that the installation belongs to, or was installed by, the workspace that initiated the connect flow. identrail then mints a GitHub App installation access token for the supplied installation_id using the app's own JWT, so an authenticated tenant can link any other identrail customer's GitHub App installation into their own workspace and read that victim organization's private repositories.
Affected code (default-on path, no feature flag)
- Route:
internal/api/router.go:3590—POST /v1/workspaces/:workspace_id/projects/:project_id/github/connect/complete.installation_idis read from the JSON body or the attacker-controlledX-GitHub-Installation-IDheader (router.go:3582-3588). - Service:
internal/api/github_connect.go:781CompleteGitHubConnection. Thestatetoken IS rigorously bound to the caller's scope (github_connect.go:818:if stateRecord.TenantID != scope.TenantID || stateRecord.WorkspaceID != project.WorkspaceID || stateRecord.ProjectID != project.ProjectID { ... }), but the only check oninstallation_idisrequest.InstallationID <= 0(:794). The raw client value is persisted as the workspace's connection (:840). - Cross-tenant read primitive:
internal/connectors/github/repositories.go:39ListInstallationRepositories→internal/connectors/github/app.go:170mints a token viaPOST /app/installations/{installationId}/access_tokenssigned with the App JWT, succeeding for any installation where identrail's app is installed.
The feature-flagged V2 path CompleteGitHubConnector (github_connect.go:447, default off) shares the gap and is additionally weaker (matches pending connector by state value alone with no caller-scope re-check); a single fix should cover both.
Intent proof
The code binds state to {TenantID, WorkspaceID, ProjectID} and re-verifies it at completion (:818), demonstrating it understands binding is required. The asymmetry — state bound, installation_id unbound — is the missed check.
Exploitation
- Attacker is any authenticated identrail tenant; they call
StartGitHubConnectionfor their own workspace and receive astate. - Attacker calls the completion route with
{state: <their state>, installation_id: V}where V is a victim org's identrail GitHub App installation id (installation ids are not secret — they appear in post-install redirect URLs, webhook payloads, the org's GitHub App settings, and are enumerable integers). CompleteGitHubConnectionaccepts (state matches attacker scope),ListInstallationRepositories(V)mints a token for V and lists the victim org's private repos, and the connection is persisted under the attacker's workspace.- Attacker now reads the victim org's private repository inventory and can drive posture scans/repo reads via their own workspace.
Impact: cross-tenant disclosure of another customer organization's private GitHub repositories and metadata.
Remediation
Bind installation_id with the same rigor as state: capture it from GitHub's signed post-install redirect (setup_url/callback_url) and pin it to the pending state at start time, and/or after minting verify the installation's account matches the org the initiating workspace is authorized for.
Advisory Timeline
- First published September 9, 2026 (77 days ago).
- Last revised September 17, 2026 — 8 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/identrail/identrail@v1.0.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/identrail/identrail Go · Affected: All versions | 1.0.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2026-59185?
- Identrail Cross-tenant IDOR: Client-supplied GitHub App installation_id is bound to the caller's workspace without ownership verification. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.5/10).
- How do I check if my project is affected by CVE-2026-59185?
- CVE-2026-59185 affects github.com/identrail/identrail. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-59185 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 21.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution