Skip to content
Medium 6.5

Privilege Escalation in github.com/openshift-pipelines/pipelines-as-code

CVE-2026-54168 First seen on SecPulse

Summary

Vulnerability in github.com/openshift-pipelines/pipelines-as-code (CVE-2026-54168). Confidential information can be exposed externally. Exploitable via ScopeTokenToListOfRepos. Mitigation: upgrade to 0.48.0 or later.

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-54168 has been found in github.com/openshift-pipelines/pipelines-as-code.
Attackers can target a specific entry point like ScopeTokenToListOfRepos over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.5/10.
What to do: upgrade github.com/openshift-pipelines/pipelines-as-code to 0.48.0 or later.
If unsure, ask your IT team or search "github.com/openshift-pipelines/pipelines-as-code CVE-2026-54168" on the vendor's site.

CVE-2026-54168 (github.com/openshift-pipelines/pipelines-as-code) — CWE-269 / CVSS v3 6.5
Attack vector: remote (network-reachable) / no user interaction
Attack surface: ScopeTokenToListOfRepos
Patched: 0.48.0 — apply immediately
Workaround: Limit the GitHub App installation to only the repositories that require Pipelines-as-Code.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (CWE-269) exists in github.com/openshift-pipelines/pipelines-as-code. Attackers reach the vulnerable code path via ScopeTokenToListOfRepos.

Affected scope

Check the vendor advisory for the affected versions of github.com/openshift-pipelines/pipelines-as-code. Attack surface: ScopeTokenToListOfRepos.

Severity

Severity: Medium (CVSS 6.5/10). Confidential information can be exposed externally.

How to fix

Update to 0.48.0.

Workaround

Workaround: Limit the GitHub App installation to only the repositories that require Pipelines-as-Code.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/openshift-pipelines/pipelines-as-code' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'github.com/openshift-pipelines/pipelines-as-code' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/openshift-pipelines/pipelines-as-code を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaroundmitigate
    Limit the GitHub App installation to only the repositories that require Pipelines-as-Code.

    パッチが適用されるまでの応急処置として、Limit the GitHub App installation to only the repositories that require Pipelines-as-Code. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patchpatch
    Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.48.0

    ステージング環境で 0.48.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
gogithub.com/openshift-pipelines/pipelines-as-code
< 0.37.8→ 0.37.8
≥ 0.38.0, < 0.39.6→ 0.39.6
≥ 0.40.0, < 0.42.1→ 0.42.1
≥ 0.43.0, < 0.48.0→ 0.48.0
Original description The description as published by the source.

Pipelines-as-Code is a CI/CD system that lets users define Tekton pipelines in source code repositories. Prior to 0.37.8, 0.39.6, 0.42.1, and 0.48.0, a GitHub App installation token created during webhook processing is not scoped to the repository that triggered the event when the App is installed across multiple repositories. A user with push access to one repository can submit a PipelineRun containing a pipelinesascode.tekton.dev/task remote task annotation that targets a private repository in the same installation. When ScopeTokenToListOfRepos returns no explicit scope, the missing triggering repository ID leaves the token able to access the entire installation. Pipelines-as-Code resolves and inlines the remote private task with that token, disclosing the repository's Tekton definitions. The demonstrated impact is read-only and does not provide write access. This issue is fixed in versions 0.37.8, 0.39.6, 0.42.1, and 0.48.0.

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details