Advisory

GHSA-6f2p-296r-cc28

Also known as: CVE-2026-54168, GO-2026-6263

Summary

Tekton Pipelines-as-Code: Unscoped GitHub App installation token allows unauthorized access to private repositories via remote task resolution

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-08-20 18:36 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

github.com/openshift-pipelines/pipelines-as-code

Go · All systems

Affected

  • introduced 0, fixed 0.37.8 (semver)

Fixed versions

0.37.8

Fix

github.com/openshift-pipelines/pipelines-as-code

Go · All systems

Affected

  • introduced 0.38.0, fixed 0.39.6 (semver)

Fixed versions

0.39.6

Fix

github.com/openshift-pipelines/pipelines-as-code

Go · All systems

Affected

  • introduced 0.40.0, fixed 0.42.1 (semver)

Fixed versions

0.42.1

Fix

github.com/openshift-pipelines/pipelines-as-code

Go · All systems

Affected

  • introduced 0.43.0, fixed 0.48.0 (semver)

Fixed versions

0.48.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences