All vulnerabilities
CVE-2026-54167GHSA-f5f4-3hh4-f54mGO-2026-6266

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

tektoncd github.com/openshift-pipelines/pipelines-as-codegoLibraries & packages
CVSS
8.2High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.27%Chance of exploitation activity in the next 30 days, higher than 18% of CVEs. Scored 28 Oct 2026FIRST EPSS
Fixed in0.48.0Also 0.42.1, 0.39.6 and 1 moreGitHub
Published15 Sep 2026Updated 28 Oct 2026CVE List

What fixes it

  • 0.48.0github.com/openshift-pipelines/pipelines-as-code, goGitHubgo get github.com/openshift-pipelines/pipelines-as-code@v0.48.0
  • 0.42.1github.com/openshift-pipelines/pipelines-as-code, goGitHubgo get github.com/openshift-pipelines/pipelines-as-code@v0.42.1
  • 0.39.6github.com/openshift-pipelines/pipelines-as-code, goGitHubgo get github.com/openshift-pipelines/pipelines-as-code@v0.39.6
  • 0.37.8github.com/openshift-pipelines/pipelines-as-code, goGitHubgo get github.com/openshift-pipelines/pipelines-as-code@v0.37.8
  • 0.48.0github.com/openshift-pipelines/pipelines-as-code, GoOSVgo get github.com/openshift-pipelines/pipelines-as-code@v0.48.0
  • 0.42.1github.com/openshift-pipelines/pipelines-as-code, GoOSVgo get github.com/openshift-pipelines/pipelines-as-code@v0.42.1
Show all 8 fixed versions
  • 0.39.6github.com/openshift-pipelines/pipelines-as-code, GoOSVgo get github.com/openshift-pipelines/pipelines-as-code@v0.39.6
  • 0.37.8github.com/openshift-pipelines/pipelines-as-code, GoOSVgo get github.com/openshift-pipelines/pipelines-as-code@v0.37.8

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Impact

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.

Patches

The fix validates the webhook signature before GitHub App token generation, verifies that X-GitHub-Enterprise-Host matches the repository URL in the webhook payload, and stops using the request header to select the GitHub Enterprise host for incoming webhook token requests. For incoming webhooks, the Enterprise host is derived from the configured Repository URL instead.

Workarounds

Until a patched release is deployed, operators should block or strip unexpected X-GitHub-Enterprise-Host headers at the ingress or proxy in front of the Pipelines-as-Code webhook endpoint. For GitHub.com installations, reject requests that include this header. For GitHub Enterprise Server installations, allow only the expected Enterprise hostname.

Operators should also restrict access to the webhook endpoint to trusted Git provider sources where possible. If exploitation is suspected, rotate the GitHub App private key and review GitHub App installation token activity.

Credits

Reported and fixed by the Pipelines-as-Code maintainers.

Text from GitHub Advisory Database

Affected versions 12

  • github.com/openshift-pipelines/pipelines-as-code, go>= 0.43.0, < 0.48.0GitHub
  • github.com/openshift-pipelines/pipelines-as-code, go>= 0.40.0, < 0.42.1GitHub
  • github.com/openshift-pipelines/pipelines-as-code, go>= 0.38.0, < 0.39.6GitHub
  • github.com/openshift-pipelines/pipelines-as-code, go< 0.37.8GitHub
  • pipelines-as-codeaffected: < 0.37.8CVE List
  • pipelines-as-codeaffected: >= 0.38.0, < 0.39.6CVE List
  • pipelines-as-codeaffected: >= 0.40.0, < 0.42.1CVE List
  • pipelines-as-codeaffected: >= 0.43.0, < 0.48.0CVE List
  • github.com/openshift-pipelines/pipelines-as-code, Gofrom 0.43.0, fixed in 0.48.0OSV
  • github.com/openshift-pipelines/pipelines-as-code, Gofrom 0.40.0, fixed in 0.42.1OSV
  • github.com/openshift-pipelines/pipelines-as-code, Gofrom 0.38.0, fixed in 0.39.6OSV
  • github.com/openshift-pipelines/pipelines-as-code, Gofrom first release, fixed in 0.37.8OSV

References 12