CVE-2026-54168: Tekton Pipelines-as-Code Unscoped GitHub App Installation Token Vulnerability
MODERATECVE-2026-54168 is a MODERATE (CVSS 6.5) unscoped github app installation token vulnerability (CWE-269: Improper Privilege Management) affecting Tekton Pipelines-as-Code libraries in the Go ecosystem. The issue involves unscoped github app installation token allows unauthorized access to private repositories via remote task resolution. Remediation is available by upgrading affected packages to version 0.37.8, 0.39.6, 0.42.1, 0.48.0.
CVE-2026-54168 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-54168
To remediate this vulnerability, upgrade all affected Tekton Pipelines-as-Code dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.37.8
Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.39.6
Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.42.1
Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.48.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/openshift-pipelines/pipelines-as-code
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54168, inspect your project dependencies for Tekton Pipelines-as-Code:
inspect dependencies for github.com/openshift-pipelines/pipelines-as-code
Analyze the terminal output to locate any version of Tekton Pipelines-as-Code in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.37.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Tekton Pipelines-as-Code, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54168 Affected Tekton Pipelines-as-Code Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/openshift-pipelines/pipelines-as-code
|
Go |
< 0.37.8
|
0.37.8
|
|
github.com/openshift-pipelines/pipelines-as-code
|
Go |
≥ 0.38.0
< 0.39.6
|
0.39.6
|
|
github.com/openshift-pipelines/pipelines-as-code
|
Go |
≥ 0.40.0
< 0.42.1
|
0.42.1
|
|
github.com/openshift-pipelines/pipelines-as-code
|
Go |
≥ 0.43.0
< 0.48.0
|
0.48.0
|
References
Frequently Asked Questions
What is CVE-2026-54168?
Which Tekton Pipelines-as-Code versions are affected?
What version fixes CVE-2026-54168?
Is github.com/openshift-pipelines/pipelines-as-code affected?
What is the CVSS score of CVE-2026-54168?
What CWE is associated with CVE-2026-54168?
How can I check Go dependencies for CVE-2026-54168?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6f2p-296r-cc28",
"modified" : "2026-08-20T18:36:41Z",
"published" : "2026-08-20T18:36:40Z",
"aliases" : [ "CVE-2026-54168" ],
"summary" : "Tekton Pipelines-as-Code: Unscoped GitHub App installation token allows unauthorized access to private repositories via remote task resolution",
"details" : "### Impact\nWhen 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.\n\nThis 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:\n```\npipelinesascode.tekton.dev/task: \"https://github.com/org/private-repo/blob/main/.tekton/secret-task.yaml\"\n```\nPipelines-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.\n\n### Patches\nThe 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.\n\nThe fix is available in v0.48.0. Supported backport releases will be added here after release tags are published.\n\n### Workarounds\nLimit 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.\n\n### Credits\nReported and fixed by the Pipelines-as-Code maintainers.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/openshift-pipelines/pipelines-as-code"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.37.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/openshift-pipelines/pipelines-as-code"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.38.0"
}, {
"fixed" : "0.39.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/openshift-pipelines/pipelines-as-code"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.40.0"
}, {
"fixed" : "0.42.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/openshift-pipelines/pipelines-as-code"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.43.0"
}, {
"fixed" : "0.48.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-6f2p-296r-cc28"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tektoncd/pipelines-as-code"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269", "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-20T18:36:40Z",
"nvd_published_at" : null
}
}