Skip to main content

CVE-2026-54167 — Vulnerability in openshift-pipelin…es-as-code

HIGH

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

Published August 20, 2026Updated October 28, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.27%). Schedule for your next planned update.

Does your project use an affected github.com/openshift-pipelines/pipelines-as-code version?

Paste your go.sum to check it for CVE-2026-54167 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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.

Advisory Timeline

  • First published August 20, 2026 (98 days ago).
  • Last revised October 28, 2026 — 69 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/openshift-pipelines/pipelines-as-code to 0.48.0 or later
go get github.com/openshift-pipelines/pipelines-as-code@v0.48.0
Go
Update github.com/openshift-pipelines/pipelines-as-code to 0.39.6 or later
go get github.com/openshift-pipelines/pipelines-as-code@v0.39.6
Go
Update github.com/openshift-pipelines/pipelines-as-code to 0.37.8 or later
go get github.com/openshift-pipelines/pipelines-as-code@v0.37.8
Go
Update github.com/openshift-pipelines/pipelines-as-code to 0.42.1 or later
go get github.com/openshift-pipelines/pipelines-as-code@v0.42.1

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/openshift-pipelines/pipelines-as-code Go · Affected: All versions0.48.0
github.com/openshift-pipelines/pipelines-as-code Go · Affected: All versions0.39.6
github.com/openshift-pipelines/pipelines-as-code Go · Affected: All versions0.37.8
github.com/openshift-pipelines/pipelines-as-code Go · Affected: All versions0.42.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-345
    Insufficient Verification of Data AuthenticityMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

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

Frequently Asked Questions

What is CVE-2026-54167?
Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
How do I check if my project is affected by CVE-2026-54167?
CVE-2026-54167 affects github.com/openshift-pipelines/pipelines-as-code. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54167 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.27%
EPSS percentile: 11.9

This is a below-median EPSS score — only 11.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-f5f4-3hh4-f54m
GO-2026-6266

Related CVEs

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum