# Harbor v2.13.6

2026-10-06 · [元のリリースノート](https://github.com/goharbor/harbor/releases/tag/v2.13.6) · [全体のまとめ](https://ratatosk.io/ja/releases/harbor/v2.13.6)

セキュリティ 13 (high 5) · 依存関係の更新 1

## アップグレード前の確認事項

### 既知の問題

- **一部のレジストリでのプッシュレプリケーション失敗** · v2.14.6で修正済み: これらのレジストリはアップロードの `Location` を返しますが、このリリースではクロスオリジンとして拒否されるため、プッシュレプリケーションが失敗します。今後のパッチで修正される予定です。
  > > [!WARNING]
  > > **Known Issue: Push Replication Fails for Specific Registries such as AWS ECR (GHSA-wjpm-hv5w-gxr6 Regression)**
  > >
  > > The security fix for GHSA-wjpm-hv5w-gxr6 strictly validated upload Location headers against the statically configured registry endpoint (c.url). Because the AWS ECR adapter configures the API control-plane endpoint (https://api.ecr.<region>.amazonaws.com) while requests are rewritten to the data-plane host (<account>.dkr.ecr.<region>.amazonaws.com), ECR's response Location header is rejected as a cross-origin target.
  > >
  > >Workaround / Resolution:
  > >
  > > A fix has been provided in PR [#24113](https://github.com/goharbor/harbor/pull/24113) and will be released in the upcoming patch release.
  > > If your environment depends on push replication, we recommend postponing the upgrade until the next patch release or applying the patch directly.

## セキュリティ (13)

### [high] ドットセグメントを含む `/v2/` リクエストの拒否

- 影響対象: Harbor の `/v2/` レジストリ API
- [GHSA-qj39-pjf2-wmrc](https://github.com/goharbor/harbor/security/advisories/GHSA-qj39-pjf2-wmrc)

修正前は、`.` または `..` のパスセグメントを含む細工されたリクエストが、あるリポジトリへの権限チェックを通過した後、別のリポジトリに到達する可能性がありました。少なくとも1つのプロジェクトが公開されていれば、誰でもログインせずに任意のプロジェクトのマニフェストを読み取ることができました。また、あるプロジェクトへのプッシュ権限を持つユーザーは、別のプロジェクトのタグやマニフェストを変更または削除できました。修正後、これらのリクエストには HTTP 400 が返されます。

> * (high): Path traversal vulnerability in distribution endpoints [GHSA-qj39-pjf2-wmrc](https://github.com/goharbor/harbor/security/advisories/GHSA-qj39-pjf2-wmrc) in [`a82c5528f`](https://github.com/goharbor/harbor/commit/a82c5528f1e939a78f2ce9acab9ecd03ee90b98f)

### [high] システムロボットの `Project` 権限をプロジェクト単位に制限

- 影響対象: `Cover all projects` スコープと `Project` リソース権限を持つシステムロボット
- [GHSA-xq2m-cj8w-56v5](https://github.com/goharbor/harbor/security/advisories/GHSA-xq2m-cj8w-56v5)

このリリースより前は、この権限によってプロジェクトをまたいでリソースが公開されるおそれがありました。`Project: Read` ではリソースを読み取れ、`Project: Delete` では削除できました。ロボットトークンを完全には信頼できない人やシステムが保持している場合にリスクとなっていました。アップグレード後は、リポジトリ、アーティファクト、メンバー、ロボットアカウントなど、プロジェクト内のリソースへのアクセスに個別の権限付与が必要です。

> * (high): Robot "cover all projects" scope collapses into a global wildcard, conferring the deliberately-ungrantable robot:update — enabling cross-project robot takeover with owner lockout [GHSA-xq2m-cj8w-56v5](https://github.com/goharbor/harbor/security/advisories/GHSA-xq2m-cj8w-56v5) in [`7331b58d5`](https://github.com/goharbor/harbor/commit/7331b58d594f245aaf7f70515473aedffff85499)

### [high] レジストリ API の管理者アクセスが auth-proxy 設定に準拠

- 影響対象: HTTP auth-proxy を使用し、`auth_mode = http_auth` を設定しているデプロイメント
- 追加の対応: レジストリ API へのアクセスで Harbor UI の管理者ステータスに依存するユーザーまたはグループの、`http_authproxy_admin_usernames` または `http_authproxy_admin_groups` への登録
- [GHSA-xvh7-74g6-29xw](https://github.com/goharbor/harbor/security/advisories/GHSA-xvh7-74g6-29xw)

auth-proxy トークンのユーザー名がローカル Harbor システム管理者（`admin` を含む）と一致すると、プロキシから管理者権限を付与されていなくても、`/v2/` リクエストに管理者アクセス権が引き継がれ、プロジェクトをまたいだプル、プッシュ、削除が可能になることがありました。アップグレード後は、ローカル Harbor の管理者フラグによってこれらのリクエストに管理者アクセス権が付与されることはなく、auth-proxy の管理者設定だけが適用されます。

> * (high): External auth-proxy identity named admin inherits Registry system-administrator authorization [GHSA-xvh7-74g6-29xw](https://github.com/goharbor/harbor/security/advisories/GHSA-xvh7-74g6-29xw) in [`13e5a1b97`](https://github.com/goharbor/harbor/commit/13e5a1b979d90d346716c19eefc5f6cfa31dce0e)

### [high] 内部向けWebhookおよびSlack配信のデフォルト拒否

- 影響対象: 完全には信頼できないユーザーがプロジェクト管理者になれるうえ、jobservice から Webhook または Slack 通知の送信先である内部サービスやクラウドメタデータに到達できる Harbor 環境
- [GHSA-2phj-cp9f-qq6w](https://github.com/goharbor/harbor/security/advisories/GHSA-2phj-cp9f-qq6w)

このリリースより前は、プロジェクト管理者が内部アドレスを送信先とする HTTP または Slack Webhook を設定できました。jobservice からその送信先に到達でき、エラーが返された場合、レスポンス本文は Webhook の実行ログに記録されていました。アップグレード後は、内部エンドポイントへの既存の配信は失敗し、新しい配信もデフォルトで拒否されます。保護を無効にするには、`network.allow_private_network_access: true` を設定するか、`core.extraEnvVars` と `jobservice.extraEnvVars` の両方で `HARBOR_ALLOW_PRIVATE_NETWORK_ACCESS` を `"true"` に設定します。この設定は、すべてのプロジェクト管理者を信頼でき、かつ `169.254.169.254` がネットワークレベルで遮断されている場合に限って使用してください。

> > [!WARNING]
> > **Breaking change: webhooks to internal addresses are blocked by default**
> > The fix for [GHSA-2phj-cp9f-qq6w](https://github.com/goharbor/harbor/security/advisories/GHSA-2phj-cp9f-qq6w) blocks webhook and Slack delivery to private, loopback, link-local and other non-public addresses. That includes hostnames that resolve to them, such as `*.svc.cluster.local`. After you upgrade, existing webhooks to internal endpoints fail to deliver, and new ones are rejected.
> > To allow them again, set the opt-out on **both core and jobservice**:
> > - `harbor.yml`: `network.allow_private_network_access: true`, then `./prepare` and restart
> > - Helm: add `{name: HARBOR_ALLOW_PRIVATE_NETWORK_ACCESS, value: "true"}` to both `core.extraEnvVars` and `jobservice.extraEnvVars`
> > This disables the protection entirely. Only use it if you trust all project admins, and block `169.254.169.254` at the network level.
> * (medium): SSRF in webhook delivery allows ProjectAdmin to reach internal services and cloud metadata endpoints [GHSA-2phj-cp9f-qq6w](https://github.com/goharbor/harbor/security/advisories/GHSA-2phj-cp9f-qq6w) in [`fb476e10c`](https://github.com/goharbor/harbor/commit/fb476e10c9f981bd994011563bef6c5292ec272c)

### [high] Harbor のシステム管理者フラグ変更をシステム管理者に制限

- 影響対象: `User: Update` 権限を持つシステムロボットアカウント
- [GHSA-w5fq-xrhj-j7g2](https://github.com/goharbor/harbor/security/advisories/GHSA-w5fq-xrhj-j7g2)

そのようなロボットのトークンを完全には信頼できない人やシステムが保持していた場合、Harbor の任意のユーザーにシステム管理者権限を付与したり、取り消したりできました。アップグレード後、これらの操作は HTTP 403 を返します。ロボットによるその他のユーザー更新操作は変更されません。

> * (high): A system robot with user:update makes itself a system administrator [GHSA-w5fq-xrhj-j7g2](https://github.com/goharbor/harbor/security/advisories/GHSA-w5fq-xrhj-j7g2) in [`8896be0ae`](https://github.com/goharbor/harbor/commit/8896be0aed0dbbd2b59d1524b748b4699e823c39)

### [medium] Harbor、イメージプルポリシーの User-Agent 例外を削除

- 影響対象: Content trust または Prevent vulnerable images from running を適用しているプロジェクト
- [GHSA-wrw5-gmvj-gf23](https://github.com/goharbor/harbor/security/advisories/GHSA-wrw5-gmvj-gf23)

これまでは、プロジェクトへの push 権限を持つユーザーまたはロボットが、`cosign` または `notation` の `User-Agent` を使うと、いずれかのポリシーによってブロックされるイメージをプルできました。今後はこうしたプルもブロックされるため、Content trust プロジェクトで新しい未署名イメージに署名しようとすると `412 Precondition Failed` で失敗します。一方、署名済みのイメージは引き続きプルできます。`CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLED=true` を設定すると、Content trust に限り、プロジェクトへの push 権限を持つユーザーまたはロボットに対してこの例外が復活します。

> > [!WARNING]
> > **Breaking change: signing unsigned images fails when content trust is enforced**
> >
> > The fix for [GHSA-wrw5-gmvj-gf23](https://github.com/goharbor/harbor/security/advisories/GHSA-wrw5-gmvj-gf23) removes the User-Agent based exemption that let `cosign` and `notation` pull unsigned images. In projects that only allow signed images, `cosign sign` and `notation sign` on a new, unsigned image now fail with `412 Precondition Failed`. Images that already have a signature are not affected.
> >
> > To allow signing clients again, set `CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLED=true` on **core**. The value must be exactly `true`.
> > - Helm: add it to `core.extraEnvVars`
> > - `harbor.yml` installs: there is no `harbor.yml` option. Add it to `common/config/core/env` and restart. Re-running `./prepare` overwrites that file.
> >
> > The exemption still trusts the client's User-Agent, but only for users or robots with push permission on the project. Projects that block vulnerable images have no opt-out: a signing client can no longer pull an image that the vulnerability policy blocks.
> * (medium): Vulnerability & Content-Trust pull policies bypassable via attacker-controlled `User-Agent` header [GHSA-wrw5-gmvj-gf23](https://github.com/goharbor/harbor/security/advisories/GHSA-wrw5-gmvj-gf23) in [`9d255ebe1`](https://github.com/goharbor/harbor/commit/9d255ebe1ad3cae00929af2f8100cec566d9ee97)

### [medium] 複数セレクターを含む不変タグルールの正しい適用

- 影響対象: リポジトリセレクターまたはタグセレクターを複数含む不変タグルールが設定されたプロジェクト
- [GHSA-27f2-qg57-2gwg](https://github.com/goharbor/harbor/security/advisories/GHSA-27f2-qg57-2gwg)

これらのルールは以前、各種類のパターンの最初のものしかチェックしていなかったため、後続のセレクターに一致するタグは変更可能で、上書きや削除の対象となっていました。現在は後続のセレクターに一致するタグも保護され、それらを上書きするプッシュや削除の試みは拒否されます。

> * (medium): Immutable tag rule matcher only evaluates first repository/tag selector, allowing multi-selector rules to be bypassed [GHSA-27f2-qg57-2gwg](https://github.com/goharbor/harbor/security/advisories/GHSA-27f2-qg57-2gwg) in [`08c58f3c7`](https://github.com/goharbor/harbor/commit/08c58f3c76bd8e9252996a3cc62dade10d4e3ab4)

### [medium] スキャナー認証情報のフィルター経由の露出修正

- 影響対象: 認証済みスキャナー登録がある Harbor インストール
- [GHSA-vwvv-675v-p6rr](https://github.com/goharbor/harbor/security/advisories/GHSA-vwvv-675v-p6rr)

信頼されていないユーザーがプロジェクト管理者になれる場合、`q` フィルターへのクエリを繰り返すことで、保存されたスキャナー認証情報が1文字ずつ明らかになる可能性がありました。また、認証情報を平文として復元できるかどうかにも左右されていました。`access_cred` はフィルターとして使用できなくなりましたが、スキャン動作に変更はありません。

> * (medium): scanner_registration.access_cred is missing filter:"false", giving a project admin a blind oracle over the scanner credential [GHSA-vwvv-675v-p6rr](https://github.com/goharbor/harbor/security/advisories/GHSA-vwvv-675v-p6rr) in [`d2e2312f5`](https://github.com/goharbor/harbor/commit/d2e2312f5735777b37041674bb146bcbd02fc054)

### [medium] スキャナーのベアラートークン要求における TLS 検証とレスポンス制限

- 影響対象: スキャナーのベアラー認証を使用し、`core_url` が HTTPS で、jobservice から core への通信が信頼できないネットワークを経由するスキャンジョブ
- [GHSA-884q-mjcg-86x4](https://github.com/goharbor/harbor/security/advisories/GHSA-884q-mjcg-86x4)

以前はトークン要求で証明書の検証が行われず、レスポンスサイズの上限もタイムアウトもありませんでした。そのため、一時的なスキャン認証情報が傍受されたり、任意に大きなレスポンスがメモリーに読み込まれたりする可能性がありました。現在は core の証明書を検証し、レスポンスを 1 MiB までに制限し、30 秒でタイムアウトします。信頼されていない証明書が原因で、スキャンが証明書エラーとなる場合があります。

> * (medium): Scanner bearer authorization request disables TLS verification and reads the full response body [GHSA-884q-mjcg-86x4](https://github.com/goharbor/harbor/security/advisories/GHSA-884q-mjcg-86x4) in [`eb1a6fb64`](https://github.com/goharbor/harbor/commit/eb1a6fb6424d523213eeac1faffd938cc687f2af)

### [medium] Jobservice の webhook エラー処理の修正

- 影響対象: webhookを使用するHarborインストール環境
- [GHSA-jw3v-7jvc-pfmx](https://github.com/goharbor/harbor/security/advisories/GHSA-jw3v-7jvc-pfmx)

webhookの受信側がエラーを返すと、jobserviceはレスポンス本文全体を読み取り、透過的に展開してサイズ制限なく実行ログに記録していました。その結果、メモリ使用量が増加し、ジョブの遅延や失敗につながる可能性がありました。現在は、失敗したレスポンス本文を最大64 KiBまで読み捨て、ステータスコードのみをログに記録します。リダイレクトには追従しないため、3xxレスポンスは配信失敗として記録されます。

> * (medium): Webhook error responses can cause unbounded decompression in Jobservice [GHSA-jw3v-7jvc-pfmx](https://github.com/goharbor/harbor/security/advisories/GHSA-jw3v-7jvc-pfmx) in [`fb476e10c`](https://github.com/goharbor/harbor/commit/fb476e10c9f981bd994011563bef6c5292ec272c)

### [medium] レジストリの安全でないアップロード `Location` の拒否

- 影響対象: リモートレジストリへのプッシュ方式のレプリケーション
- 追加の対応: アップロードを別のホスト名に引き渡す宛先では、設定するエンドポイント URL にそのホスト名を使用する必要があります。
- [GHSA-wjpm-hv5w-gxr6](https://github.com/goharbor/harbor/security/advisories/GHSA-wjpm-hv5w-gxr6)

このリリースより前は、Harbor はリモートレジストリのアップロード `Location` が同じレジストリを指しているか確認せず、その宛先に Blob データとレジストリの `Authorization` ヘッダーを送信していました。現在は、スキーム、ホスト、ポートが異なる `Location` や、ユーザー名を含む `Location` は拒否され、レプリケーションタスクは失敗します。相対 `Location` は引き続き使用できます。

> * (medium): Registry chunk upload reuses unvalidated Location headers [GHSA-wjpm-hv5w-gxr6](https://github.com/goharbor/harbor/security/advisories/GHSA-wjpm-hv5w-gxr6) in [`401e73429`](https://github.com/goharbor/harbor/commit/401e7342963c4c406fd103cf2931e8aac95d320d)

### [medium] レプリケーションクライアントによる無効なページネーションリンクの拒否

- 影響対象: リポジトリ一覧またはタグ一覧をページ分割して返すリモートレジストリからのプル型レプリケーション
- 追加の対応: ページネーションリンクで異なるホスト名を使うリモートレジストリでは、Harbor のエンドポイント URL にそのホスト名を指定する必要があります。
- [GHSA-xgp2-5vxg-rgh2](https://github.com/goharbor/harbor/security/advisories/GHSA-xgp2-5vxg-rgh2)

以前は、Harbor はリモートの `Link` ヘッダーのリンク先を検証せずにたどり、保存済みのレジストリ認証情報をリクエストに含めていました。現在は、スキーム、ホスト、ポートが異なる `next` リンク、またはユーザー名を含む `next` リンクがあると、一覧取得はエラーで停止し、レプリケーションに失敗します。

> * (medium): SSRF and credential disclosure via attacker-controlled pagination Link header in the registry replication client [GHSA-xgp2-5vxg-rgh2](https://github.com/goharbor/harbor/security/advisories/GHSA-xgp2-5vxg-rgh2) in [`a01e0c6c5`](https://github.com/goharbor/harbor/commit/a01e0c6c561458fc719a16310d02b928a87e589a)

### Harbor セキュリティミドルウェアの認証モード取得失敗時のリクエスト拒否

- 影響対象: Harbor coreで設定された認証モード
- [GHSA-3x7c-wf86-mjx6](https://github.com/goharbor/harbor/security/advisories/GHSA-3x7c-wf86-mjx6)

coreが設定済みの認証モードを読み取れない場合、たとえばデータベースや設定キャッシュの停止時には、ミドルウェアは警告を記録して処理を続け、リクエストは認証されないままでした。現在は該当するリクエストに HTTP 500（`failed to determine authentication mode`）を返します。通常のリクエストに変更はありません。

> * (low): Security middleware continues after AuthMode lookup failure [GHSA-3x7c-wf86-mjx6](https://github.com/goharbor/harbor/security/advisories/GHSA-3x7c-wf86-mjx6) in [`bfd319a92`](https://github.com/goharbor/harbor/commit/bfd319a928460e50ad8f0536b5e163cefb24ef5c)

## 依存関係の更新 (1)

ほか1件（いずれもセキュリティへの言及なし）

- `* fix: pin redis 7.2.11 instead of 7.2.6 in the redis base image by @bupd in https://github.com/goharbor/harbor/pull/24066`

---

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