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

Advisory record · `GHSA-f5f4-3hh4-f54m`

- **Identifiers:** `GHSA-f5f4-3hh4-f54m` · `CVE-2026-54167` · `GO-2026-6266`
- **State:** Confirmed
- **Severity:** CVSS 8.2 High
- **Critical:** No
- **Weakness (CWE):** [CWE-345](https://cwe.mitre.org/data/definitions/345.html)
- **Tags:** [CWE-345](https://agentprime.io/advisories/tag/cwe-345.md)
- **Published:** 20 Aug 2026
- **Updated:** 28 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 Aug 2026, 18:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

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

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Pipelines-as-Code versions before 0.37.8, from 0.38.0 before 0.39.6, from 0.40.0 before 0.42.1, and from 0.43.0 before 0.48.0 are affected. An attacker who can reach the webhook endpoint can send a crafted GitHub webhook with an attacker-chosen Enterprise Host header, which causes the controller to send a GitHub App JWT to that host and may let the attacker mint installation access tokens within the JWT's validity window. Upgrade to 0.37.8, 0.39.6, 0.42.1, 0.48.0, or later; until then, strip or block unexpected X-GitHub-Enterprise-Host headers at the proxy in front of the webhook endpoint.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.2 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0027, the 19th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:11 UTC: First seen by agentprime
- 31 Oct 2026, 14:11 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-f5f4-3hh4-f54m)

## Sources

- [GitHub Advisory Database: GHSA-f5f4-3hh4-f54m](https://github.com/advisories/GHSA-f5f4-3hh4-f54m)
- [OSV: GHSA-f5f4-3hh4-f54m](https://osv.dev/vulnerability/GHSA-f5f4-3hh4-f54m)
- <https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-f5f4-3hh4-f54m>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54167>
- <https://github.com/tektoncd/pipelines-as-code/pull/2759>
- <https://github.com/tektoncd/pipelines-as-code/commit/402d5c7eeece881cb082ec68e9e8b61709e39ace>
- <https://github.com/tektoncd/pipelines-as-code/commit/40813976a77920feaf52671320d6d3c5ff08eb7e>
- <https://github.com/tektoncd/pipelines-as-code/commit/ac6fded6dfb69ade7197d4eeed6e90ddbe1b79bc>
- <https://github.com/tektoncd/pipelines-as-code/commit/e0c4a11ea3800ab9d26cf3a8ae92b74cf18527c3>
- <https://github.com/tektoncd/pipelines-as-code>
- <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.37.8>
- <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.39.6>
- <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.42.1>
- <https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.48.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-f5f4-3hh4-f54m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-f5f4-3hh4-f54m/>. Everything for agents: <https://agentprime.io/llms.txt>.
