Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/openshift-pipelines/pipelines-as-code
  4. ›
  5. CVE-2026-54167

CVE-2026-54167: Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header

August 20, 2026

Pipelines-as-Code installations using the GitHub App provider are vulnerable to GitHub App credential exfiltration through the webhook endpoint.

Affected versions accepted the X-GitHub-Enterprise-Host request header as the GitHub Enterprise API host during GitHub App token generation. For GitHub webhook events containing an installation.id, Pipelines-as-Code generated a GitHub App JWT and requested an installation access token before validating the webhook signature or checking that the Enterprise host matched the repository URL in the signed payload.

An attacker who can reach the Pipelines-as-Code webhook endpoint can send a crafted GitHub webhook payload containing an installation ID and set X-GitHub-Enterprise-Host to an attacker-controlled host. During token generation, the controller signs a GitHub App JWT locally and sends it to the selected API host. This can disclose the GitHub App JWT to the attacker-controlled service, allowing the attacker to attempt to mint GitHub App installation access tokens within the JWT validity window, subject to the GitHub App installation and permissions.

The incoming webhook flow also trusted X-GitHub-Enterprise-Host during GitHub App installation lookup and token generation. In that path, exploitation requires a valid incoming webhook secret for the target Repository CR.

References

  • github.com/advisories/GHSA-f5f4-3hh4-f54m
  • github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-f5f4-3hh4-f54m
  • nvd.nist.gov/vuln/detail/CVE-2026-54167

Code Behaviors & Features

Detect and mitigate CVE-2026-54167 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.37.8, all versions starting from 0.38.0 before 0.39.6, all versions starting from 0.40.0 before 0.42.1, all versions starting from 0.43.0 before 0.48.0

Fixed versions

  • 0.37.8
  • 0.39.6
  • 0.42.1
  • 0.48.0

Solution

Upgrade to versions 0.37.8, 0.39.6, 0.42.1, 0.48.0 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

go/github.com/openshift-pipelines/pipelines-as-code/CVE-2026-54167.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 12:22:56 +0000.