derrickaw opened a new pull request, #41630:
URL: https://github.com/apache/beam/pull/41630
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 :)
Aligns the `transformers` version range in `extras_require['ml_cpu']`
(`sdks/python/setup.py`) with `extras_require['transformers']` (updated in
#40745) from `transformers>=4.28.0,<4.56.0` to
`transformers>=4.41.0,!=4.56.*,<5.21.0`.
### Context & Security Advisories
This unblocks regenerating
`sdks/python/container/ml/py{311,312,313}/base_image_requirements.txt` via
`Update Python Dependencies`
(`:sdks:python:container:generatePythonRequirementsAll`) to upgrade
`transformers` from `4.55.4` to `5.20.2`, resolving all 15 open Dependabot
alerts across the Python 3.11, 3.12, and 3.13 ML container images:
- `CVE-2026-9856` (`< 5.10.0`, High — alerts `#3116`, `#3118`, `#3120`)
- `CVE-2026-5241` (`< 5.5.0`, High — alerts `#2594`, `#2595`, `#2596`)
- `CVE-2026-4372` (`< 5.3.0`, High — alerts `#2582`, `#2585`, `#2588`)
- `CVE-2026-80047` (`>= 4.49.0, <= 5.8.1`, High — alerts `#3430`, `#3432`,
`#3434`)
- `CVE-2026-1839` (`< 5.0.0rc3`, Medium — alerts `#2112`, `#2122`, `#2132`)
### Local Verification
- Installed `sdks/python[gcp,dataframe,test,ml_cpu,tfrecord,yaml]` with
`--extra-index-url https://download.pytorch.org/whl/cpu` plus
`sdks/python/container/base_image_requirements_manual.txt` (mirroring
`run_generate_requirements.sh`).
- Confirmed `pip check` passes with zero broken requirements
(`tensorflow==2.21.0`, `torch==2.13.0+cpu`, `transformers==5.20.2`, no
`triton`).
- Verified `huggingface_inference_test.py` and
`ml/rag/embeddings/huggingface_test.py` pass on `transformers==5.20.2`.
--
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]