Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header
CVE-2026-54167 · GHSA-f5f4-3hh4-f54m · GO-2026-6266 · published 20 Aug 2026
How serious is it
- Severity: high, CVSS score 8.2 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-54167?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
github.com/openshift-pipelines/pipelines-as-code(Go) >= 0.43.0, < 0.48.0github.com/openshift-pipelines/pipelines-as-code(Go) >= 0.40.0, < 0.42.1github.com/openshift-pipelines/pipelines-as-code(Go) >= 0.38.0, < 0.39.6github.com/openshift-pipelines/pipelines-as-code(Go) < 0.37.8
How to check
- Run
go list -m github.com/openshift-pipelines/pipelines-as-codein your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On >= 0.43.0, < 0.48.0: Upgrade
github.com/openshift-pipelines/pipelines-as-codeto 0.48.0 or later, commit the lockfile and redeploy. - On >= 0.40.0, < 0.42.1: Upgrade
github.com/openshift-pipelines/pipelines-as-codeto 0.42.1 or later, commit the lockfile and redeploy. - On >= 0.38.0, < 0.39.6: Upgrade
github.com/openshift-pipelines/pipelines-as-codeto 0.39.6 or later, commit the lockfile and redeploy. - On < 0.37.8: Upgrade
github.com/openshift-pipelines/pipelines-as-codeto 0.37.8 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
## 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.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-f5f4-3hh4-f54m
- nvd.nist.gov/vuln/detail/CVE-2026-54167
- github.com/tektoncd/pipelines-as-code/pull/2759
- github.com/tektoncd/pipelines-as-code/commit/402d5c7eeece881cb082ec68e9e8b61709e39ace
- github.com/tektoncd/pipelines-as-code/commit/40813976a77920feaf52671320d6d3c5ff08eb7e
- github.com/tektoncd/pipelines-as-code/commit/ac6fded6dfb69ade7197d4eeed6e90ddbe1b79bc
- github.com/tektoncd/pipelines-as-code/commit/e0c4a11ea3800ab9d26cf3a8ae92b74cf18527c3
- github.com/tektoncd/pipelines-as-code/releases/tag/v0.37.8
- github.com/tektoncd/pipelines-as-code/releases/tag/v0.39.6
- github.com/tektoncd/pipelines-as-code/releases/tag/v0.42.1
- github.com/tektoncd/pipelines-as-code/releases/tag/v0.48.0
- github.com/advisories/GHSA-f5f4-3hh4-f54m
- github.com/tektoncd/pipelines-as-code
Merged from GitHub Advisory Database, OSV. Last updated 29 Oct 2026. All vulnerabilities · RSS · JSON