derrickaw opened a new pull request, #41344: URL: https://github.com/apache/beam/pull/41344
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 `torch` from `1.13.1` to `2.13.0` in `sdks/python/apache_beam/examples/inference/runinference_metrics/setup.py` to remediate **9 open Dependabot security alerts** (1 Critical, 3 High, 2 Medium, 3 Low) while staying within Beam's tested `torch>=2.3.0,<2.15.0` SDK range and aligning with `transformers==5.10.1` (updated in #39963). ## Remediated Security Advisories | Alert | Advisory | Severity | Vulnerable Range | First Patched | | :--- | :--- | :--- | :--- | :--- | | [#1440](https://github.com/apache/beam/security/dependabot/1440) | `CVE-2025-32434` | **Critical** | `< 2.6.0` | `2.6.0` | | [#4491](https://github.com/apache/beam/security/dependabot/4491) | `CVE-2026-24747` | **High** | `< 2.10.0` | `2.10.0` | | [#1146](https://github.com/apache/beam/security/dependabot/1146) | `CVE-2024-31580` | **High** | `< 2.2.0` | `2.2.0` | | [#1142](https://github.com/apache/beam/security/dependabot/1142) | `CVE-2024-31583` | **High** | `< 2.2.0` | `2.2.0` | | [#2414](https://github.com/apache/beam/security/dependabot/2414) | `CVE-2025-2999` | **Medium** | `< 2.9.1` | `2.9.1` | | [#1340](https://github.com/apache/beam/security/dependabot/1340) | `CVE-2025-3730` | **Medium** | `<= 2.7.1` | `2.8.0` | | [#2629](https://github.com/apache/beam/security/dependabot/2629) | `CVE-2025-3000` | **Low** | `<= 2.12.1` | `2.13.0` | | [#2420](https://github.com/apache/beam/security/dependabot/2420) | `CVE-2025-3001` | **Low** | `< 2.10.0` | `2.10.0` | | [#1307](https://github.com/apache/beam/security/dependabot/1307) | `CVE-2025-2953` | **Low** | `< 2.7.1-rc1` | `2.7.1-rc1` | ## Compatibility & Verification - Verified `pip install --dry-run --index-url https://pypi.org/simple --ignore-installed "transformers==5.10.1" "torch==2.13.0"` resolves cleanly on Python 3.13 Linux x86_64. - Confirmed `torch==2.13.0` falls within Beam's `torch` extra constraint (`torch>=2.3.0,<2.15.0` in `sdks/python/setup.py`), and `CustomPytorchModelHandlerKeyedTensor.load_model` loads a standard `state_dict` (`pytorch_model.bin`) compatible with PyTorch 2.6+'s default `weights_only=True` behavior. - Verified `python3 -m py_compile` across all modules in `sdks/python/apache_beam/examples/inference/runinference_metrics/`. -- 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]
