CVE-2026-54168: Medium severity go/github.com/openshift-pipelines/pipelines-as-code vulnerability

Published Aug 20, 2026
·
Updated

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.

Affected Software

4 affected componentsFixes available
go/github.com/openshift-pipelines/pipelines-as-code>=0.43.0<0.48.0
0.48.0
go/github.com/openshift-pipelines/pipelines-as-code>=0.40.0<0.42.1
0.42.1
go/github.com/openshift-pipelines/pipelines-as-code>=0.38.0<0.39.6
0.39.6
go/github.com/openshift-pipelines/pipelines-as-code<0.37.8
0.37.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/openshift-pipelines/pipelines-as-code to a version that resolves this vulnerability.

    Fixed in 0.48.0
  2. Upgrade

    Upgrade go/github.com/openshift-pipelines/pipelines-as-code to a version that resolves this vulnerability.

    Fixed in 0.42.1
  3. Upgrade

    Upgrade go/github.com/openshift-pipelines/pipelines-as-code to a version that resolves this vulnerability.

    Fixed in 0.39.6
  4. Upgrade

    Upgrade go/github.com/openshift-pipelines/pipelines-as-code to a version that resolves this vulnerability.

    Fixed in 0.37.8
  5. Upgrade

    Upgrade pipelinesascode to a version that resolves this vulnerability.

    Fixed in v0.48.0
  6. Configuration

    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).

    GitHub App (used by Pipelines-as-Code) installation_scope = repositories_only_required

Event History

Aug 20, 2026
Advisory Published
via GitHub·06:36 PM
Data Sourced
via GitHub·06:36 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using Pipelines-as-Code with a GitHub App installation spanning multiple repositories are exposed when installation tokens are not explicitly scoped to repositories. The default behavior described retains access to all repositories in the installation.

2

What does an attacker need to exploit this issue?

The attacker needs push access to any repository covered by the GitHub App installation. They can craft a PipelineRun that references a remote task in another private repository within that same installation.

3

Does exploitation allow repository modification?

No. The documented impact is a read-only confidentiality breach that exposes the contents of private repositories' Tekton definitions; it does not grant write access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203