CVE-2026-54167

CVE-2026-54167 is a high-severity security vulnerability in github.com/openshift-pipelines/pipelines-as-code (go), affecting versions >= 0.43.0, < 0.48.0. It is fixed in 0.48.0, 0.42.1, 0.39.6, 0.37.8.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

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

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.

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.

CVE-2026-54167 has a CVSS score of 8.2 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (0.48.0, 0.42.1, 0.39.6, 0.37.8); upgrading removes the vulnerable code path.

Affected versions

github.com/openshift-pipelines/pipelines-as-code (>= 0.43.0, < 0.48.0) github.com/openshift-pipelines/pipelines-as-code (>= 0.40.0, < 0.42.1) github.com/openshift-pipelines/pipelines-as-code (>= 0.38.0, < 0.39.6) github.com/openshift-pipelines/pipelines-as-code (< 0.37.8)

Security releases

github.com/openshift-pipelines/pipelines-as-code → 0.48.0 (go) github.com/openshift-pipelines/pipelines-as-code → 0.42.1 (go) github.com/openshift-pipelines/pipelines-as-code → 0.39.6 (go) github.com/openshift-pipelines/pipelines-as-code → 0.37.8 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

The fix is available in v0.48.0. Supported backport releases will be added here after release tags are published.

Frequently Asked Questions

  1. What is CVE-2026-54167? CVE-2026-54167 is a high-severity security vulnerability in github.com/openshift-pipelines/pipelines-as-code (go), affecting versions >= 0.43.0, < 0.48.0. It is fixed in 0.48.0, 0.42.1, 0.39.6, 0.37.8.
  2. How severe is CVE-2026-54167? CVE-2026-54167 has a CVSS score of 8.2 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/openshift-pipelines/pipelines-as-code are affected by CVE-2026-54167? github.com/openshift-pipelines/pipelines-as-code (go) versions >= 0.43.0, < 0.48.0 is affected.
  4. Is there a fix for CVE-2026-54167? Yes. CVE-2026-54167 is fixed in 0.48.0, 0.42.1, 0.39.6, 0.37.8. Upgrade to this version or later.
  5. Is CVE-2026-54167 exploitable, and should I be worried? Whether CVE-2026-54167 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-54167 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-54167?
    • Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.48.0 or later
    • Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.42.1 or later
    • Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.39.6 or later
    • Upgrade github.com/openshift-pipelines/pipelines-as-code to 0.37.8 or later

Stop the waste.
Protect your environment with Kodem.