# Tekton v1.0.2

2026-04-21 · [元のリリースノート](https://github.com/tektoncd/pipeline/releases/tag/v1.0.2) · [全体のまとめ](https://ratatosk.io/ja/releases/tekton/v1.0.2)

セキュリティ 5 (high 2) · 破壊的変更 1

## セキュリティ (5)

### [high] Git resolver のシステムトークン漏えいの修正

- 影響対象: システム設定の Git API トークンを使用する Git resolver の API モード
- [CVE-2026-40161](https://www.cve.org/CVERecord?id=CVE-2026-40161), [GHSA-wjxp-xrpv-xpff](https://github.com/tektoncd/pipeline/security/advisories/GHSA-wjxp-xrpv-xpff)

リクエストで `token` が省略され、ユーザーが制御する `serverURL` が指定されると、resolver はシステムトークンをその URL に送信する可能性がありました。現在は、リクエストに独自の `token` が指定されていない限り、システム用ではない `serverURL` を拒否します。

> - **[GHSA-wjxp-xrpv-xpff](https://github.com/tektoncd/pipeline/security/advisories/GHSA-wjxp-xrpv-xpff)** / [CVE-2026-40161](https://www.cve.org/CVERecord?id=CVE-2026-40161) (HIGH): Git resolver API mode leaks system-configured API token to user-controlled `serverURL`. A user who can create TaskRuns can exfiltrate the system Git API token by pointing the resolver at an attacker-controlled server.

### [high] Git resolver の revision 引数インジェクション脆弱性の修正

- 影響対象: ユーザー指定の `revision` 値を使う Git resolver の構成
- [CVE-2026-40938](https://www.cve.org/CVERecord?id=CVE-2026-40938), [GHSA-94jr-7pqp-xhcq](https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq)

`-` で始まる悪意のある `revision` が `git fetch` のフラグとして解釈され、resolver Pod 上でコードが実行される可能性がありました。このリリースで、この引数インジェクションの脆弱性を修正しました。

> - **[GHSA-94jr-7pqp-xhcq](https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq)** / [CVE-2026-40938](https://www.cve.org/CVERecord?id=CVE-2026-40938) (HIGH): Git resolver unsanitized revision parameter enables argument injection. A malicious `revision` value can inject arbitrary flags into the `git` CLI, potentially leading to remote code execution on the resolver pod.

### [medium] `VerificationPolicy` の部分文字列照合を悪用した検証回避の修正

- 影響対象: 信頼済みリソースの検証における、アンカーなしの `VerificationPolicy` パターン
- [CVE-2026-25542](https://www.cve.org/CVERecord?id=CVE-2026-25542), [GHSA-rmx9-2pp3-xhcr](https://github.com/tektoncd/pipeline/security/advisories/GHSA-rmx9-2pp3-xhcr)

アンカーのないパターンが部分文字列として照合されていたため、信頼されたパターンを含むソース URI によって意図しないポリシー照合が起こり、署名のないリソースが検証を通過する可能性がありました。照合に使われる `refSource.URI` を攻撃者が操作できるデプロイメントが影響を受けました。

> - **[GHSA-rmx9-2pp3-xhcr](https://github.com/tektoncd/pipeline/security/advisories/GHSA-rmx9-2pp3-xhcr)** / [CVE-2026-25542](https://www.cve.org/CVERecord?id=CVE-2026-25542) (Medium): VerificationPolicy regex pattern bypass via substring matching. Unanchored patterns allow partial matches, letting unsigned resources pass verification.

### [medium] Tekton の VolumeMount パス制限回避の修正

- 影響対象: `/tekton/` 配下またはそこを経由する `VolumeMount` パスを使用する `v1` または `v1beta1` の `Task` および `TaskRun` リソース
- [CVE-2026-40923](https://www.cve.org/CVERecord?id=CVE-2026-40923), [GHSA-rx35-6rhx-7858](https://github.com/tektoncd/pipeline/security/advisories/GHSA-rx35-6rhx-7858)

パスのプレフィックスチェックでディレクトリー遡りの要素が正規化されなかったため、`/tekton/home/../results` のようなパスが検証を通過し、`/tekton/results` として解決されていました。

> - **[GHSA-rx35-6rhx-7858](https://github.com/tektoncd/pipeline/security/advisories/GHSA-rx35-6rhx-7858)** / [CVE-2026-40923](https://www.cve.org/CVERecord?id=CVE-2026-40923) (Medium): VolumeMount path restriction bypass via missing filepath normalization. Paths like `/tekton/../sensitive` bypass the `/tekton/` prefix restriction check.

### [medium] HTTP resolver のレスポンスボディ上限によるメモリ枯渇の防止

- 影響対象: HTTP resolver を使用する TaskRun または PipelineRun
- [CVE-2026-40924](https://www.cve.org/CVERecord?id=CVE-2026-40924), [GHSA-m2cx-gpqf-qf74](https://github.com/tektoncd/pipeline/security/advisories/GHSA-m2cx-gpqf-qf74)

この変更前は、取得した URL から非常に大きなレスポンスが返ると resolver Pod のメモリを使い果たして OOM が発生し、クラスター全体で解決サービスが利用できなくなるおそれがありました。レスポンスが 1 MiB を超えた場合の動作は、リリースノートに記載されていません。

> - **[GHSA-m2cx-gpqf-qf74](https://github.com/tektoncd/pipeline/security/advisories/GHSA-m2cx-gpqf-qf74)** / [CVE-2026-40924](https://www.cve.org/CVERecord?id=CVE-2026-40924) (Medium): HTTP resolver unbounded response body read enables OOM denial of service. A malicious URL returning a very large response can exhaust the resolver pod's memory. Response body is now limited to 1 MiB.

## 破壊的変更 (1)

### PipelineRun の `childReferences` のソートによる不要なステータス更新の防止

- 影響対象: `childReferences` を持つ PipelineRun (推定)

> * :bug: Sort PipelineRun `childReferences` to prevent spurious status updates

---

整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。
