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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-345
- **Aliases:** GHSA-f5f4-3hh4-f54m, GO-2026-6266
- **Published:** 2026-08-20T18:36:30.000Z
- **Modified:** 2026-10-28T15:45:10.969Z

## Who should check

- Projects that depend on Go package github.com/openshift-pipelines/pipelines-as-code (\>= 0.43.0, \< 0.48.0)
- Anyone running tektoncd pipelines-as-code \< 0.37.8; \>= 0.38.0, \< 0.39.6; \>= 0.40.0, \< 0.42.1; \>= 0.43.0, \< 0.48.0

## Description

Pipelines-as-Code is a CI/CD system that lets users define Tekton pipelines in source code repositories. Prior to 0.37.8, 0.39.6, 0.42.1, and 0.48.0, the GitHub App provider accepts X-GitHub-Enterprise-Host as the API host while processing webhook events containing an installation.id, before webhook signature validation or confirmation that the host matches the repository URL in the signed payload. An unauthenticated attacker who can reach the webhook endpoint can select an attacker-controlled host and cause the controller to send a locally signed GitHub App JWT to that service. The exposed JWT may be used to attempt to mint installation access tokens during its validity window, subject to the GitHub App installation and permissions. The incoming webhook installation-lookup path is also affected, but exploitation of that path requires the valid incoming webhook secret for the target Repository CR. This issue is fixed in versions 0.37.8, 0.39.6, 0.42.1, and 0.48.0.

## Affected and fixed versions

- Go `github.com/openshift-pipelines/pipelines-as-code`: affected \>= 0.43.0, \< 0.48.0; fixed 0.48.0, 0.42.1, 0.39.6, 0.37.8 (osv)
- tektoncd pipelines-as-code: \< 0.37.8; \>= 0.38.0, \< 0.39.6; \>= 0.40.0, \< 0.42.1; \>= 0.43.0, \< 0.48.0 (cvelist)

## Mitigation

- Upgrade github.com/openshift-pipelines/pipelines-as-code to one of 0.48.0, 0.42.1, 0.39.6, 0.37.8 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54167. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54167.md
Affected: github.com/openshift-pipelines/pipelines-as-code >= 0.43.0, < 0.48.0
Fixed in: 0.48.0, 0.42.1, 0.39.6, 0.37.8

Steps:
1. Search this machine and project for github.com/openshift-pipelines/pipelines-as-code (Go), tektoncd pipelines-as-code: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54167 being exploited?

There is no confirmed exploitation: CVE-2026-54167 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54167?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-54167?

github.com/openshift-pipelines/pipelines-as-code \>= 0.43.0, \< 0.48.0.

### Is there a fix for CVE-2026-54167?

Yes. Fixed in 0.48.0, 0.42.1, 0.39.6, 0.37.8. Upgrade github.com/openshift-pipelines/pipelines-as-code to one of 0.48.0, 0.42.1, 0.39.6, 0.37.8 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-54167?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-f5f4-3hh4-f54m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-54167>
- patch: <https://github.com/tektoncd/pipelines-as-code/commit/402d5c7eeece881cb082ec68e9e8b61709e39ace>
- patch: <https://github.com/tektoncd/pipelines-as-code/commit/40813976a77920feaf52671320d6d3c5ff08eb7e>
- patch: <https://github.com/tektoncd/pipelines-as-code/commit/ac6fded6dfb69ade7197d4eeed6e90ddbe1b79bc>
- patch: <https://github.com/tektoncd/pipelines-as-code/commit/e0c4a11ea3800ab9d26cf3a8ae92b74cf18527c3>
- patch: <https://github.com/tektoncd/pipelines-as-code/pull/2759>
- other: <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.37.8>
- other: <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.39.6>
- other: <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.42.1>
- other: <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.48.0>
- other: <https://github.com/tektoncd/pipelines-as-code>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54167>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f5f4-3hh4-f54m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6266> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54167> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54167>
