github.com/openshift-pipelines/pipelines-as-code
Affected
- introduced
0, fixed0.37.8(semver)
Fixed versions
0.37.8
Fix
- Fixed version
0.37.8go get github.com/openshift-pipelines/[email protected]
Advisory
Also known as: CVE-2026-54168, GO-2026-6263
Tekton Pipelines-as-Code: Unscoped GitHub App installation token allows unauthorized access to private repositories via remote task resolution
Impact
When Pipelines-as-Code is configured with a GitHub App installed across multiple repositories, the installation token issued during webhook processing is not scoped to the triggering repository by default. The token retains access to all repositories in the GitHub App installation.
This allows a user with push access to any repository in the installation to craft a PipelineRun with a remote task annotation pointing at a private repository in the same installation:
pipelinesascode.tekton.dev/task: "https://github.com/org/private-repo/blob/main/.tekton/secret-task.yaml"
Pipelines-as-Code resolves and inlines the remote task using the unscoped token, exposing the contents of the private repository's Tekton definitions. This is a read-only confidentiality breach, no write access is exposed.
Patches
The fix extracts the repository ID from the webhook payload during initial parsing so that it is available for later use. It then adds a fallback in the client setup path so that when no explicit scoping configuration is present and ScopeTokenToListOfRepos returns empty, the token is re-issued scoped to the triggering repository's ID rather than retaining access to the entire installation. The initial token remains unscoped so that the extra-repos lookup can still discover and resolve additional repositories when configured.
The fix is available in v0.48.0. Supported backport releases will be added here after release tags are published.
Workarounds
Limit the GitHub App installation to only the repositories that require Pipelines-as-Code. Avoid org-wide installations or mixed-trust installations where repositories with different access requirements share the same GitHub App. This restricts the blast radius of the unscoped token to only the repositories that are explicitly selected during App installation.
Credits
Reported and fixed by the Pipelines-as-Code maintainers.
Medium Basis: The source's own band: MODERATE
0, fixed 0.37.8 (semver)0.37.8
0.37.8go get github.com/openshift-pipelines/[email protected]0.38.0, fixed 0.39.6 (semver)0.39.6
0.39.6go get github.com/openshift-pipelines/[email protected]0.40.0, fixed 0.42.1 (semver)0.42.1
0.42.1go get github.com/openshift-pipelines/[email protected]0.43.0, fixed 0.48.0 (semver)0.48.0
0.48.0go get github.com/openshift-pipelines/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0