mediumCVSS 6.5Vulnerability

CVE-2026-54168

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

Properties

ghsa_id
GHSA-6f2p-296r-cc28
severity
medium
summary
Tekton Pipelines-as-Code: Unscoped GitHub App installation token allows unauthorized access to private repositories via remote task resolution
cvss_score
6.5
cve_id
CVE-2026-54168
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
is_ghsa_only
false
ghsa_published
2026-08-20T18:36:40Z
source_url
https://github.com/advisories/GHSA-6f2p-296r-cc28
ghsa_updated
2026-08-20T18:36:43Z

Related Entities (5)

HAS_WEAKNESS (2)

[Weakness]Improper Privilege Management
[Weakness]Missing Authorization

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]go/github.com/openshift-pipelines/pipelines-as-code

AFFECTS (1)

[Software]go/github.com/openshift-pipelines/pipelines-as-code

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-54168 (CVSS 6.5) — Ninja Signal Threat Intelligence | Ninja Signal