# gRPC v1.86.0

2026-11-30 · [元のリリースノート](https://github.com/grpc/grpc/releases/tag/v1.86.0) · [全体のまとめ](https://ratatosk.io/ja/releases/grpc/v1.86.0)

セキュリティ 5 (high 1) · 破壊的変更 1 · 重大な修正 3 · 機能・改善 3 · 依存関係の更新 1 · その他の変更 7

## セキュリティ (5)

### [high] Channelz v2 `QueryTrace` のサービス妨害につながる不具合の修正

- 影響対象: リリースノートに記載なし
- [GHSA-mp3j-8555-cjpj](https://github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj)

`grpc.channelz.v2.Channelz` に RPC を送信できる信頼できない呼び出し元は、サーバープロセスを停止させたり、ワーカースレッドをブロックしたりできました。`QueryTrace` で引数を検証するようになり、呼び出し元が RPC をキャンセルするとサーバーリソースが解放されます。

セキュリティアドバイザリ:

> Your server is affected only if both of these are true:
> - Your gRPC C++ server activates Channelz with `grpc::channelz::experimental::InitChannelzService()`.
> - An untrusted caller can send RPCs to the Channelz v2 service (`grpc.channelz.v2.Channelz`).
> gRPC C++ did not correctly check the arguments and the state of the `QueryTrace` RPC. A remote caller can send `QueryTrace` requests that stop the server process or keep server worker threads blocked. This causes a denial of service (DoS).
> The fix checks the `QueryTrace` arguments and releases server resources when the caller cancels the RPC.
> - Do not call `grpc::channelz::experimental::InitChannelzService()` in production servers.
> - Block access to `grpc.channelz.v2.Channelz` from untrusted callers. Use authentication, an authorization policy, or a network rule.

https://github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj

セキュリティアドバイザリ:

> A denial of service (DoS) vulnerability was found and fixed in the gRPC C++ Channelz v2 service.

https://github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj

### xDS リソースと authority チャネルの照合

- 影響対象: xDS クライアントの構成

xDS リソースが、その authority 用に構成されていないチャネルに届いた場合、処理されずに無視されます。

> -  [XdsClient] check that resources are received from the right servers. ([#43695](https://github.com/grpc/grpc/pull/43695))

### gRPC リポジトリのルート証明書バンドルを Chromium のルート証明書に更新

- 影響対象: gRPC リポジトリのルート証明書バンドルを使った証明書検証 (推定)

> -  [Security] Update repo roots to chromium roots. ([#43890](https://github.com/grpc/grpc/pull/43890))

### [セキュリティかどうか不明] c-ares の DNS-over-TCP 書き込みによる `SIGPIPE` 終了の修正

- 影響対象: `MSG_NOSIGNAL` または `SO_NOSIGPIPE` を使用する POSIX プラットフォーム上の c-ares DNS-over-TCP（システムの c-ares 1.34.7 以降とリンクするビルドを含む）

DNS サーバーがすでに TCP 接続を閉じているかリセットしている場合、c-ares の書き込みによって `SIGPIPE` が発生し、プロセスが終了することがありました。現在、c-ares は `EPIPE` を接続エラーとして扱い、プロセスを終了させずにクエリを再試行するか、失敗として処理します。

> -  [EventEngine] Avoid SIGPIPE on c-ares writes to closed TCP sockets. ([#43802](https://github.com/grpc/grpc/pull/43802))

### gRPC リポジトリのルート証明書バンドルの更新

- 影響対象: 証明書チェーンの検証に gRPC リポジトリのルート証明書バンドルを使用する構成 (推定)

更新後のバンドルにも `emSign Root CA - G1` が含まれています。

> -  [security] Update gRPC repo roots. ([#43699](https://github.com/grpc/grpc/pull/43699))

## 破壊的変更 (1)

### `InterceptedCall` のメタデータ取得メソッドが空の `Metadata` を返す変更

- 影響対象: `InterceptedCall.initial_metadata()` または `InterceptedCall.trailing_metadata()` を使用する Python AIO 呼び出し

以前は、呼び出しがキャンセルされた場合や、`AioRpcError` にメタデータがない場合、これらのメソッドが `None` を返すことがありました。該当する場合は空の `Metadata()` を返すようになり、取得可能なメタデータは引き続き返されます。

根拠: “Make `InterceptedCall` method `trailing_metadata` and `initial_metadata` return `Metadata` instead of `Optional[Metadata]`.” https://github.com/grpc/grpc/pull/42743

> -  [Python] AIO Part 5 - Type Hints fixes and add Pyright for all aio files. ([#42743](https://github.com/grpc/grpc/pull/42743))

## 重大な修正 (3)

### Python AIO の非 OK 呼び出し表現の順序修正

- 影響対象: Python AIO の呼び出し文字列と表現の出力 (推定)

`ABORTED` の呼び出しでは、表現にステータスとして `StatusCode.ABORTED` が表示され、対応する詳細テキストも併記されます。

> -  [Python] Fix the ordering of status and details in _NON_OK_CALL_REPRESENTATION. ([#43869](https://github.com/grpc/grpc/pull/43869))

### 同期 Python `Channel` のクローズ時のデッドロック修正

- 影響対象: 同期 API を介した Python `Channel` のクローズ

以前は、gRPC のバックグラウンドスレッドが呼び出し認証情報プラグインなどの Python コールバックを実行している間にチャネルを閉じると、Python プロセスがフリーズすることがありました。完了キューとチャネルの破棄、および gRPC のシャットダウンは、`GIL` を保持せずに実行されるようになりました。

> -  [Python] Fix GIL deadlocks: Release GIL during grpc_channel_destroy/grpc_shutdown in Channel close. ([#43962](https://github.com/grpc/grpc/pull/43962))

### Python 認証情報ファクトリーのクラッシュ修正

- 影響対象: Python の認証情報ファクトリー `grpc.xds_server_credentials()` と `ComputeEngineChannelCredentials`

`grpc.xds_server_credentials()` に `None` または空のフォールバック認証情報ラッパーを渡すと、または `ComputeEngineChannelCredentials` に `None` の呼び出し認証情報を渡すと、ネイティブコードに到達してインタープリターがクラッシュするか、プロセスが異常終了する可能性がありました。これらの入力に対しては、代わりに `ValueError` が発生するようになりました。

> -  [Python]  Raise ValueError instead of crashing when credential factories receive None. ([#43592](https://github.com/grpc/grpc/pull/43592))

## 機能・改善 (3)

- 非xDSトランスポート向けの公開 `TransportFactory` API
- `grpcio_status` にバージョン属性を追加
- `ChannelArgumentType` の `grpc.aio` エクスポートへの追加

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

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

- `-  [Core] Upgrade cares to 1.34.9. ([#43958](https://github.com/grpc/grpc/pull/43958))`

## その他の変更 (7)

- `map_host_header_to_authority` 実験のデフォルト有効化
- setuptools 84 における Windows ARM64 コンパイラー処理の修正
- `grpcio-tools` と `grpcio-observability` から `setuptools` のインストール要件を削除
- `grpc_tools.protoc` と `grpc_tools.command` における `importlib.resources` の使用
- Python AIO の型ヒントを修正
- Pyright 設定の対象を AIO ディレクトリー内の全ファイルに拡大
- `_done_writing_flag` の型チェック追加

---

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