derrickaw opened a new pull request, #41366: URL: https://github.com/apache/beam/pull/41366
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 `transformers` from `5.3.0` to `5.10.0` in [`sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py`](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py) to remediate **3 open High-severity Dependabot alerts**, and relaxes legacy sibling pins (`apache-beam[gcp]==2.40.0` -> `apache-beam[gcp]>=2.60.0` and `scikit-learn==1.5.0` -> `scikit-learn>=1.5.0`) so `install_requires` resolves cleanly on supported Python 3.11–3.14 runtimes alongside `torch==2.13.0`. ## Remediated Security Advisories | Dependabot Alert | Advisory | Severity | Vulnerable Range | First Patched / Safe | Summary | | :--- | :--- | :--- | :--- | :--- | :--- | | `#3425` | `CVE-2026-80047` (`GHSA-x9r9-c232-4q39`) | **High** | `>= 4.49.0, <= 5.8.1` | `> 5.8.1` (`5.10.0`) | Downloads custom generation code before trust consent | | `#3107` | `CVE-2026-9856` (`GHSA-xrqw-3rrv-vx5w`) | **High** | `< 5.10.0` | `5.10.0` | `save_pretrained` path traversal via chat template names | | `#2601` | `CVE-2026-5241` (`GHSA-fgcw-684q-jj6r`) | **High** | `< 5.5.0` | `5.5.0` | Arbitrary code execution in LightGlue model loading path | ## Compatibility & Verification - **Python 3.11–3.14 installability**: `apache-beam==2.40.0` only published wheels up to Python 3.9 (`python_requires < 3.10`), making it mutually incompatible with `torch==2.13.0` and `transformers==5.10.0` (`Python >= 3.10`), and `scikit-learn==1.5.0` lacked Python 3.13/3.14 wheels. Relaxing to `apache-beam[gcp]>=2.60.0` and `scikit-learn>=1.5.0` makes the full `REQUIREMENTS` list installable across Beam's supported Python versions. - **Verification**: Verified dependency resolution (`pip install --dry-run`) and syntax/compilation (`python3 -m py_compile`) across all modules in `online_clustering/clustering_pipeline`. -- 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]
