derrickaw opened a new pull request, #41801:
URL: https://github.com/apache/beam/pull/41801

   Note: this PR was auto-generated by tooling. Before moving it out of draft, 
the author has done a full review of the PR, specifically evaluating it on the 
following criteria:
   
   - The PR remediates a confirmed, live vulnerability on `master` that 
Dependabot is not already addressing
   - The version update is minimal, respects Beam's compatibility bounds, and 
avoids unrelated dependency churn
   - Relevant lockfiles, package constraints, and tests have been verified
   
   If you have concerns with the PR or with the underlying methodology used to 
generate this, please comment below - they will be addressed by the author not 
the tooling :)
   
   ### Summary
   
   Bumps `protobuf` (`4.25.8` -> `7.36.2`), `grpcio` (`1.59.2` -> `1.86.0`), 
and `grpcio-tools` (`1.59.2` -> `1.86.0`) in `.test-infra/mock-apis/` and 
regenerates the checked-in Python protobuf/gRPC stubs to resolve 
`CVE-2026-0994` (`GHSA-7gcm-g887-7qv7`, JSON recursion depth bypass in 
`google.protobuf.json_format.ParseDict`).
   
   ### Changes
   - **`.test-infra/mock-apis/pyproject.toml`**: Raised `grpcio` and 
`grpcio-tools` minimum floors from `^1.53.0` to `^1.85.3` so the package 
metadata matches the runtime version floor (`GRPC_GENERATED_VERSION = '1.85.3'` 
and `protobuf>=7.35.1,<8.0.0`) enforced by the regenerated stubs.
   - **`.test-infra/mock-apis/poetry.lock`**: Updated via Poetry `2.4.1` 
(`poetry update --lock protobuf grpcio-tools grpcio`), locking 
`protobuf==7.36.2`, `grpcio==1.86.0`, `grpcio-tools==1.86.0` (and 
`typing-extensions==4.16.0`, removing unused `setuptools`).
   - **`.test-infra/mock-apis/src/main/python/proto/echo/v1/echo_pb2.py` & 
`echo_pb2_grpc.py`**: Regenerated from `proto/echo/v1/echo.proto` using 
`grpcio-tools==1.85.3` (`protoc` Python gencode `7.35.1`, compatible with 
`protobuf 7.36.2` and `grpcio >= 1.85.3`) while preserving the existing Apache 
license headers.
   - **`.test-infra/mock-apis/buf.gen.yaml`**: Updated the pinned remote Python 
plugins to matching versions (`buf.build/protocolbuffers/python:v35.1` and 
`buf.build/grpc/python:v1.85.3`).
   
   ### Verification
   - Ran `poetry check` with Poetry `2.4.1` (passed).
   - Verified importing `proto.echo.v1.echo_pb2` and 
`proto.echo.v1.echo_pb2_grpc`, serializing/deserializing 
`EchoRequest`/`EchoResponse`, and instantiating `EchoServiceStub` in an 
isolated Python venv with `grpcio==1.85.3` and `protobuf==7.36.2` (passed).
   - Ran `go test ./src/main/go/internal/...` in `.test-infra/mock-apis` 
(passed).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to