Repository navigation
build(deps): update bundled log4j, aiohttp, and idna versions - #64056
Conversation
There was a problem hiding this comment.
Code Review
This pull request upgrades several dependencies, including updating aiohttp to 3.14.0, idna to 3.15, and log4j to 2.25.4. It also introduces a new Bazel test to verify that these bundled dependency versions remain fixed. Feedback is provided to replace .resolve() with .absolute() on __file__ in the test to prevent escaping the Bazel runfiles directory, which can cause failures in sandboxed or remote execution environments.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| from pathlib import Path | ||
|
|
||
|
|
||
| REPO_ROOT = Path(__file__).resolve().parents[3] |
There was a problem hiding this comment.
Using .resolve() on __file__ in a Bazel test resolves symlinks, which escapes the Bazel runfiles directory and points to the absolute path of the source file on the host machine. This can break in strict sandboxing or Remote Build Execution (RBE) environments where the host source directory is not present or accessible on the worker.
Using .absolute() instead of .resolve() keeps the path within the runfiles directory structure, which is correctly populated by Bazel and works reliably across all execution environments.
| REPO_ROOT = Path(__file__).resolve().parents[3] | |
| REPO_ROOT = Path(__file__).absolute().parents[3] |
Signed-off-by: nh-atuan <[email protected]>
There was a problem hiding this comment.
can you do the following please:
- move the test_bundled_dependency_versions.py -> ci/build/bundled_dependency_versions_test.py (rename as well please)
- Add the py_test to ci/build/BUILD.bazel instead of ci/raydepsets/BUILD.bazel, keeping the data = ["//:python/setup.py",
"//java:dependencies.bzl"] deps and team:ci/ci_unit tags. - The REPO_ROOT = Path(file).absolute().parents[3] needs to become parents[2] (file moves from ci/raydepsets/tests/ to
ci/build/, one level shallower)
|
Thanks @elliot-barn, I addressed your requested changes.
Verified locally with: python -m pytest ci/build/bundled_dependency_versions_test.py -q
bazel test //ci/build:bundled_dependency_versions_test |
Signed-off-by: nh-atuan <[email protected]>
Signed-off-by: nh-atuan <[email protected]>
|
just a minor formatting issue is left and we should be good to run the full test suite and merge |
Signed-off-by: nh-atuan <[email protected]>
|
Thanks @elliot-barn. I addressed the formatting issue and pushed a follow-up commit. CI is running again. |
Signed-off-by: nh-atuan <[email protected]>
Signed-off-by: nh-atuan <[email protected]> # Conflicts: # ci/env/install-dependencies.sh
|
Thanks for pointing this out, @edoakes. I’ll investigate the pip compile resolution errors and push a fix as soon as possible. |
Signed-off-by: nh-atuan <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit a0f6b89. Configure here.
Signed-off-by: nh-atuan <[email protected]>
|
@edoakes Hi, we are waiting to adopt these changes to mitigate the vulnerabilities. Do you have an estimated release date for the version that includes this change? Thank you! |
…oject#64056) ## Description Updates bundled dependency versions in the Ray Python wheel to address scanner-visible vulnerable artifacts reported in installed `site-packages/ray/...` contents. This PR updates: - `log4j-api`, `log4j-core`, and `log4j-slf4j-impl` from `2.25.3` to `2.25.4` for `ray/jars/ray_dist.jar`. - Runtime env agent vendored packages to pin `aiohttp==3.14.0` and `idna==3.15`, so generated wheels include fixed `*.dist-info` artifacts. - Python requirement constraints for `aiohttp>=3.14.0` and `idna>=3.15`. It also adds a small CI test to guard the bundled dependency versions used by the wheel packaging path. ## Related issues Fixes ray-project#64050 ## Additional information Validated locally with: ```bash python -m pytest ci/raydepsets/tests/test_bundled_dependency_versions.py -q bazel test //ci/raydepsets:test_bundled_dependency_versions ``` Also verified that installing the runtime env agent package set produces: ```text aiohttp-3.14.0.dist-info idna-3.15.dist-info ``` --------- Signed-off-by: nh-atuan <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]>
…oject#64056) ## Description Updates bundled dependency versions in the Ray Python wheel to address scanner-visible vulnerable artifacts reported in installed `site-packages/ray/...` contents. This PR updates: - `log4j-api`, `log4j-core`, and `log4j-slf4j-impl` from `2.25.3` to `2.25.4` for `ray/jars/ray_dist.jar`. - Runtime env agent vendored packages to pin `aiohttp==3.14.0` and `idna==3.15`, so generated wheels include fixed `*.dist-info` artifacts. - Python requirement constraints for `aiohttp>=3.14.0` and `idna>=3.15`. It also adds a small CI test to guard the bundled dependency versions used by the wheel packaging path. ## Related issues Fixes ray-project#64050 ## Additional information Validated locally with: ```bash python -m pytest ci/raydepsets/tests/test_bundled_dependency_versions.py -q bazel test //ci/raydepsets:test_bundled_dependency_versions ``` Also verified that installing the runtime env agent package set produces: ```text aiohttp-3.14.0.dist-info idna-3.15.dist-info ``` --------- Signed-off-by: nh-atuan <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Signed-off-by: 400Ping <[email protected]>
…dead data.pyg.org find-links (#65899) ## Description `data.pyg.org` — the only host that ever served prebuilt wheels for the PyTorch Geometric extensions — has been a dangling CNAME since 2026-09-02 ([pyg-team/pyg-lib#719](pyg-team/pyg-lib#719)). Every ML/data/rllib/doc/windows depset declared it as `--find-links`, and uv fails eagerly on an unreadable find-links URL, so `raydepsets: compile all dependencies` has been red on master (postmerge 19501, 19507) and was made `soft_fail` in #65880. The same URL is line 2 of every affected lock, so any cache-miss rebuild of the `mlbuild`/`mlgpubuild`/`mllightning1gpubuild` images (and the core/rllib/doc GPU images) fails at `uv pip install -r <lock>` too. This PR narrows the dependency on `data.pyg.org` to the one package that needs it, sources `torch-scatter` from Astral's index, and re-enables the hard failure: - **`torch-scatter` now comes from Astral's GPU indexes** (`https://wheels.astral.sh/simple/{cpu,cu128}/`). These are real PEP 503/691 indexes, so the requirement files use `--extra-index-url` instead of a flat find-links page. Versions encode the torch minor: `2.1.2+cpu.torch.2.9` / `2.1.2+cu.12.8.torch.2.9`. Astral publishes manylinux wheels only, so the CPU pin carries `; sys_platform == 'linux'`; nothing in Ray imports `torch_scatter` on any platform. - **`torch-sparse` stays, still from `data.pyg.org`** (which came back on 2026-09-03; pyg-lib#719 closed). It is required: `torch_geometric.loader.NeighborSampler.__init__` builds a `SparseTensor` from `torch_geometric.typing`, whose stub raises `ImportError: 'SparseTensor' requires 'torch-sparse'` when the package is absent — verified empirically on torch 2.9.0 + torch-geometric 2.5.3 — and `python/ray/train/examples/pytorch_geometric/distributed_sage_example.py` (CI test `distributed_sage_example`, `train_v2_gpu`) uses it. `torch_sparse` also imports `torch_scatter` in 8 modules, so scatter is a hard dependency of sparse. No other wheel source for torch-sparse exists (PyPI is sdist-only; not on Astral, `download.pytorch.org` or `pypi.nvidia.com`; no GitHub release assets), so the `--find-links` for it remains and this PR does **not** remove the dependency on that host — it narrows it to one package. Pinned explicitly (`+pt29cpu` / `+pt29cu128`) so a missing wheel fails loudly instead of falling back to the sdist. - **`torch-cluster` and `torch-spline-conv` are dropped.** Nothing in `python/`, `rllib/`, `release/` or `doc/` imports them, `torch-geometric==2.5.3` lists none of the four in `requires_dist`, and the example's full path (FakeDataset → RandomNodeSplit → NeighborSampler → SAGEConv) trains with only scatter + sparse installed (run in a glibc-2.36 container against the exact pinned wheels). - Both remaining extensions are gated on `sys_platform == 'linux'`: Astral ships manylinux wheels only, `torch_sparse` cannot import without `torch_scatter`, and nothing on Windows or macOS uses PyG. Windows therefore loses the four `+pt27cpu` pins, their find-links, and the matching `relaxed_windows_tests` entries. - **`deepspeed`: `>=0.12.3` → `===0.18.9`** in `train-requirements.txt` (PEP 440 *arbitrary equality*; the compiled constraint follows as `deepspeed==0.18.9` → `deepspeed===0.18.9`). Why: Astral's cu128 index also publishes `deepspeed 0.18.9+cu.12.8.torch.2.9` (prebuilt CUDA ops). Under PEP 440 a bare `==0.18.9` *matches* that local version, and `--index-strategy unsafe-best-match` prefers it, so without this every GPU depset would silently switch to Astral's deepspeed build and pull in `nvidia-ml-py` (verified with `uv pip compile`). `===` is the only specifier that excludes local versions, so deepspeed stays on the PyPI build it uses today; uv honours it as requirement and constraint, and pip-tools writes it through to `requirements_compiled.txt`. The resolved version is unchanged (0.18.9 before and after). If we ever *want* Astral's prebuilt-ops deepspeed, the opt-in is the reverse edit, `===` → `==` — not part of this PR. - **`ci/ci.sh compile_pip_dependencies`**: the `+cpu`-stripping sed now removes the whole local segment. The compiled file is the GPU depsets' constraint (via the `requirements_compiled_py3.1x.txt` symlinks), and only a bare `torch-scatter==2.1.2` lets `+cu.12.8.torch.2.9` satisfy it; the old `[^\b]*cpu` pattern would have left `2.1.2.torch.2.9`. - `.buildkite/dependencies.rayci.yml`: `soft_fail` and its comment removed — the job hard-fails again. - Also: dead `--find-links` removed from `release/ray_release/byod/requirements_ml_byod_3.10.txt` (it pinned none of the four); docs and stale comments updated. Regenerated: `python/requirements_compiled.txt` (`./ci/ci.sh compile_pip_dependencies`, py3.11 + pip-tools 7.4.1) and all 32 affected locks under `python/deplocks/` (`bazel run //ci/raydepsets:raydepsets -- build --all-configs`). Package-level delta in every lock is only the PyG lines; deepspeed stays `0.18.9`, no new packages. `python/requirements_compiled_py3.14.txt` has no generator (it pins torch 2.7.0, which has no cp314 wheels) and has always been maintained by mirroring the hunks applied to `requirements_compiled.txt` (#65616, #65046, #64056 all changed identical pin counts in both), so the same header/pin deltas were applied to it by hand; its own `torch-2.7.0+cpu` find-links is kept to match its torch pin. That line is only ever read by pip: `requirements_compiled_py${PYTHON_VERSION}.txt` is staged into the `base-deps`/`base-slim` images as `/home/ray/requirements_compiled.txt` (those images install from the rayimg *lock* with uv, not from this file) and then used as `-c` by `ci/docker/ray-image.Dockerfile`, `docker/ray/Dockerfile` and `runtime_env_container/Dockerfile` — all `pip install -c`. pip treats an unreachable `--find-links` in a constraints file as a warning (5 retries, exit 0; verified against an NXDOMAIN host), whereas uv fails eagerly (exit 2; also verified). The only uv consumer is raydepsets, whose pre-hook strips the header lines. So no py3.10–3.14 image build hard-fails on that line even if data.pyg.org goes dark again; the uv exposure is the `--find-links` emitted into the ML/data/rllib/doc *locks*, which this PR narrows to torch-sparse. Left untouched, flagged for follow-up: `release/ray_release/byod/byod_horovod*.sh` (install torch-2.0.1-era PyG wheels from the same dead host — separate, older problem), `ci/raydepsets/tests/test_cli.py` (fixture strings only). ## Related issues Follows up #65880 (temporary `soft_fail`). Upstream: pyg-team/pyg-lib#719, pytorch_geometric#10793, pytorch_geometric#10716. ## Additional information Not a duplicate: no open PR touches `data.pyg.org`, `wheels.astral.sh`, or the PyG pins (searched `pyg`, `astral`, `find-links`, `torch-scatter`, `data.pyg.org`; only unrelated dependabot torch bumps match). Tests run locally: - `./ci/ci.sh compile_pip_dependencies` in a py3.11 venv → exit 0; diff vs master is exactly the two header lines, the PyG pins/markers and `deepspeed===` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 107 depsets compiled; the 32 changed locks differ from master only in the PyG lines and the index/find-links header, and the `torch-sparse` hashes are unchanged - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` (CI's exact command) → exit 0, all 107 depsets regenerate byte-identically (including the py3.14-constrained ones against the mirrored snapshot), working tree clean afterwards - PyG minimal-set check in `python:3.10-bookworm`: the example's path trains with scatter+sparse only; fails without sparse, and sparse fails without scatter - `pre-commit run --files <changed source files>` → shellcheck, semgrep pass - `uv pip compile` probes: `torch-scatter==2.1.2+cu.12.8.torch.2.9` resolves from `wheels.astral.sh/simple/cu128/`; `deepspeed==0.18.9` flips to `0.18.9+cu.12.8.torch.2.9` with that index present, `deepspeed===0.18.9` does not. AI assistance (Claude Code) was used for this change; every changed line was reviewed by the submitter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Elliot Barnwell <[email protected]> Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
…oject#64056) ## Description Updates bundled dependency versions in the Ray Python wheel to address scanner-visible vulnerable artifacts reported in installed `site-packages/ray/...` contents. This PR updates: - `log4j-api`, `log4j-core`, and `log4j-slf4j-impl` from `2.25.3` to `2.25.4` for `ray/jars/ray_dist.jar`. - Runtime env agent vendored packages to pin `aiohttp==3.14.0` and `idna==3.15`, so generated wheels include fixed `*.dist-info` artifacts. - Python requirement constraints for `aiohttp>=3.14.0` and `idna>=3.15`. It also adds a small CI test to guard the bundled dependency versions used by the wheel packaging path. ## Related issues Fixes ray-project#64050 ## Additional information Validated locally with: ```bash python -m pytest ci/raydepsets/tests/test_bundled_dependency_versions.py -q bazel test //ci/raydepsets:test_bundled_dependency_versions ``` Also verified that installing the runtime env agent package set produces: ```text aiohttp-3.14.0.dist-info idna-3.15.dist-info ``` --------- Signed-off-by: nh-atuan <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]>
…dead data.pyg.org find-links (ray-project#65899) ## Description `data.pyg.org` — the only host that ever served prebuilt wheels for the PyTorch Geometric extensions — has been a dangling CNAME since 2026-09-02 ([pyg-team/pyg-lib#719](pyg-team/pyg-lib#719)). Every ML/data/rllib/doc/windows depset declared it as `--find-links`, and uv fails eagerly on an unreadable find-links URL, so `raydepsets: compile all dependencies` has been red on master (postmerge 19501, 19507) and was made `soft_fail` in ray-project#65880. The same URL is line 2 of every affected lock, so any cache-miss rebuild of the `mlbuild`/`mlgpubuild`/`mllightning1gpubuild` images (and the core/rllib/doc GPU images) fails at `uv pip install -r <lock>` too. This PR narrows the dependency on `data.pyg.org` to the one package that needs it, sources `torch-scatter` from Astral's index, and re-enables the hard failure: - **`torch-scatter` now comes from Astral's GPU indexes** (`https://wheels.astral.sh/simple/{cpu,cu128}/`). These are real PEP 503/691 indexes, so the requirement files use `--extra-index-url` instead of a flat find-links page. Versions encode the torch minor: `2.1.2+cpu.torch.2.9` / `2.1.2+cu.12.8.torch.2.9`. Astral publishes manylinux wheels only, so the CPU pin carries `; sys_platform == 'linux'`; nothing in Ray imports `torch_scatter` on any platform. - **`torch-sparse` stays, still from `data.pyg.org`** (which came back on 2026-09-03; pyg-lib#719 closed). It is required: `torch_geometric.loader.NeighborSampler.__init__` builds a `SparseTensor` from `torch_geometric.typing`, whose stub raises `ImportError: 'SparseTensor' requires 'torch-sparse'` when the package is absent — verified empirically on torch 2.9.0 + torch-geometric 2.5.3 — and `python/ray/train/examples/pytorch_geometric/distributed_sage_example.py` (CI test `distributed_sage_example`, `train_v2_gpu`) uses it. `torch_sparse` also imports `torch_scatter` in 8 modules, so scatter is a hard dependency of sparse. No other wheel source for torch-sparse exists (PyPI is sdist-only; not on Astral, `download.pytorch.org` or `pypi.nvidia.com`; no GitHub release assets), so the `--find-links` for it remains and this PR does **not** remove the dependency on that host — it narrows it to one package. Pinned explicitly (`+pt29cpu` / `+pt29cu128`) so a missing wheel fails loudly instead of falling back to the sdist. - **`torch-cluster` and `torch-spline-conv` are dropped.** Nothing in `python/`, `rllib/`, `release/` or `doc/` imports them, `torch-geometric==2.5.3` lists none of the four in `requires_dist`, and the example's full path (FakeDataset → RandomNodeSplit → NeighborSampler → SAGEConv) trains with only scatter + sparse installed (run in a glibc-2.36 container against the exact pinned wheels). - Both remaining extensions are gated on `sys_platform == 'linux'`: Astral ships manylinux wheels only, `torch_sparse` cannot import without `torch_scatter`, and nothing on Windows or macOS uses PyG. Windows therefore loses the four `+pt27cpu` pins, their find-links, and the matching `relaxed_windows_tests` entries. - **`deepspeed`: `>=0.12.3` → `===0.18.9`** in `train-requirements.txt` (PEP 440 *arbitrary equality*; the compiled constraint follows as `deepspeed==0.18.9` → `deepspeed===0.18.9`). Why: Astral's cu128 index also publishes `deepspeed 0.18.9+cu.12.8.torch.2.9` (prebuilt CUDA ops). Under PEP 440 a bare `==0.18.9` *matches* that local version, and `--index-strategy unsafe-best-match` prefers it, so without this every GPU depset would silently switch to Astral's deepspeed build and pull in `nvidia-ml-py` (verified with `uv pip compile`). `===` is the only specifier that excludes local versions, so deepspeed stays on the PyPI build it uses today; uv honours it as requirement and constraint, and pip-tools writes it through to `requirements_compiled.txt`. The resolved version is unchanged (0.18.9 before and after). If we ever *want* Astral's prebuilt-ops deepspeed, the opt-in is the reverse edit, `===` → `==` — not part of this PR. - **`ci/ci.sh compile_pip_dependencies`**: the `+cpu`-stripping sed now removes the whole local segment. The compiled file is the GPU depsets' constraint (via the `requirements_compiled_py3.1x.txt` symlinks), and only a bare `torch-scatter==2.1.2` lets `+cu.12.8.torch.2.9` satisfy it; the old `[^\b]*cpu` pattern would have left `2.1.2.torch.2.9`. - `.buildkite/dependencies.rayci.yml`: `soft_fail` and its comment removed — the job hard-fails again. - Also: dead `--find-links` removed from `release/ray_release/byod/requirements_ml_byod_3.10.txt` (it pinned none of the four); docs and stale comments updated. Regenerated: `python/requirements_compiled.txt` (`./ci/ci.sh compile_pip_dependencies`, py3.11 + pip-tools 7.4.1) and all 32 affected locks under `python/deplocks/` (`bazel run //ci/raydepsets:raydepsets -- build --all-configs`). Package-level delta in every lock is only the PyG lines; deepspeed stays `0.18.9`, no new packages. `python/requirements_compiled_py3.14.txt` has no generator (it pins torch 2.7.0, which has no cp314 wheels) and has always been maintained by mirroring the hunks applied to `requirements_compiled.txt` (ray-project#65616, ray-project#65046, ray-project#64056 all changed identical pin counts in both), so the same header/pin deltas were applied to it by hand; its own `torch-2.7.0+cpu` find-links is kept to match its torch pin. That line is only ever read by pip: `requirements_compiled_py${PYTHON_VERSION}.txt` is staged into the `base-deps`/`base-slim` images as `/home/ray/requirements_compiled.txt` (those images install from the rayimg *lock* with uv, not from this file) and then used as `-c` by `ci/docker/ray-image.Dockerfile`, `docker/ray/Dockerfile` and `runtime_env_container/Dockerfile` — all `pip install -c`. pip treats an unreachable `--find-links` in a constraints file as a warning (5 retries, exit 0; verified against an NXDOMAIN host), whereas uv fails eagerly (exit 2; also verified). The only uv consumer is raydepsets, whose pre-hook strips the header lines. So no py3.10–3.14 image build hard-fails on that line even if data.pyg.org goes dark again; the uv exposure is the `--find-links` emitted into the ML/data/rllib/doc *locks*, which this PR narrows to torch-sparse. Left untouched, flagged for follow-up: `release/ray_release/byod/byod_horovod*.sh` (install torch-2.0.1-era PyG wheels from the same dead host — separate, older problem), `ci/raydepsets/tests/test_cli.py` (fixture strings only). ## Related issues Follows up ray-project#65880 (temporary `soft_fail`). Upstream: pyg-team/pyg-lib#719, pytorch_geometric#10793, pytorch_geometric#10716. ## Additional information Not a duplicate: no open PR touches `data.pyg.org`, `wheels.astral.sh`, or the PyG pins (searched `pyg`, `astral`, `find-links`, `torch-scatter`, `data.pyg.org`; only unrelated dependabot torch bumps match). Tests run locally: - `./ci/ci.sh compile_pip_dependencies` in a py3.11 venv → exit 0; diff vs master is exactly the two header lines, the PyG pins/markers and `deepspeed===` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 107 depsets compiled; the 32 changed locks differ from master only in the PyG lines and the index/find-links header, and the `torch-sparse` hashes are unchanged - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` (CI's exact command) → exit 0, all 107 depsets regenerate byte-identically (including the py3.14-constrained ones against the mirrored snapshot), working tree clean afterwards - PyG minimal-set check in `python:3.10-bookworm`: the example's path trains with scatter+sparse only; fails without sparse, and sparse fails without scatter - `pre-commit run --files <changed source files>` → shellcheck, semgrep pass - `uv pip compile` probes: `torch-scatter==2.1.2+cu.12.8.torch.2.9` resolves from `wheels.astral.sh/simple/cu128/`; `deepspeed==0.18.9` flips to `0.18.9+cu.12.8.torch.2.9` with that index present, `deepspeed===0.18.9` does not. AI assistance (Claude Code) was used for this change; every changed line was reviewed by the submitter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Elliot Barnwell <[email protected]> Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
…HSA-2g87-pp6c-29x5 (#67304) Closes #67302 ## Why Three high-severity advisories against aiohttp, all fixed in 3.14.4 (verified in the GitHub Advisory Database): | Advisory | Affected | Fixed | Summary | |---|---|---|---| | CVE-2026-111064 / GHSA-5wr8-gcqf-gqf3 | <= 3.14.3 | 3.14.4 | server lacks an initial request/header timeout | | CVE-2026-111066 / GHSA-9xw5-w5jj-pvcg | >= 2.0.0, < 3.14.4 | 3.14.4 | file descriptor exhaustion in multipart requests | | GHSA-2g87-pp6c-29x5 | <= 3.14.3 | 3.14.4 | multiple instances of excessive or unbounded memory/CPU use | Ray runs aiohttp **servers** in two places, so the server-side DoS issues apply directly: - the runtime_env agent (`python/ray/_private/runtime_env/agent/main.py`, `web.Application`), from the copy vendored into the wheel via `RUNTIME_ENV_AGENT_PIP_PACKAGES` (`aiohttp==3.14.3`). This is what #67302 reports; scanners flag its dist-info regardless of site-packages and it can't be overridden downstream. - the dashboard, from site-packages: `requirements_compiled.txt` pins 3.14.3, so every image ships it, and the `>= 3.14.1` floor in `requirements.txt` / `ray[default]` still allows affected versions for users. ## What Same shape as #64056: - `python/setup.py`: bundled `aiohttp==3.14.4`; `ray[default]` floor `aiohttp >= 3.14.4`. - `python/requirements.txt`, `python/requirements/test-requirements.txt`: `aiohttp>=3.14.4`. - `ci/build/bundled_dependency_versions_test.py`: expects `aiohttp==3.14.4` (passes locally). - `python/requirements/security-requirements.txt`: adds `aiohttp>=3.14.4`, so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't resolve an affected aiohttp. aiohttp's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes, since raydepsets only sees the compiled files. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67301 (virtualenv); whichever merges later needs a trivial rebase. - `requirements_compiled.txt` / `requirements_compiled_py3.14.txt` and all raydepsets locks: aiohttp 3.14.4, yarl 1.23.0 → 1.25.1 (aiohttp 3.14.4 requires `yarl>=1.25.1`; yarl's own deps are unchanged). Every changed lock line is an aiohttp or yarl version/hash line; the size of the diff is aiohttp 3.14.4 publishing more wheels (e.g. 161 vs 119 hashes in `ray_img_py312.lock`). Checks: - `uv pip compile` of both compiled files with only these two pins changed resolves on py3.11 / py3.14 with no other version moving. - aiohttp 3.14.4/3.14.5 publish wheels for cp310–cp314 on linux x86_64/aarch64, macOS arm64/x86_64 and win_amd64. - The vendored install (`pip install --target ... aiohttp==3.14.4 idna==3.15`) gives aiohttp 3.14.4, yarl 1.25.1, multidict 6.9.1 on py3.10 and py3.14, and `from aiohttp import web` imports from the vendored dir. **Why 3.14.4 and not 3.14.5:** 3.14.5 only adds a WebSocket control-frame fix and widens its `multidict` cap to `<8`. The vendored bundle doesn't pin transitive deps, so 3.14.5 would pull multidict 7.1.0 (a new major) into the runtime_env agent; 3.14.4 keeps it on 6.x. Both satisfy the issue's `>= 3.14.4`. **Behavior change in 3.14.4:** `application/x-www-form-urlencoded` posts with more than 1000 fields now get `413` by default (`client_max_fields` on `web.Application`). ## Not covered - `python/deplocks/ci/ci_windows_depset.lock` (aiohttp 3.10.11): the Windows agent driver env is Python 3.8; aiohttp >= 3.11 requires a newer Python. - `release/requirements_py310.txt` (aiohttp 3.9.5): release tooling (`ray_release`), pip-compiled via Bazel; not shipped. - `release/ray_release/byod/requirements_ml_byod_3.10.txt` (3.13.3): not referenced by any config. - `python/deplocks/ray_img/ray_img_py39.lock`: orphaned, no py3.9 depset. - `releases/2.60.0` also pins 3.14.3; a cherry-pick is a separate decision. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…HSA-2g87-pp6c-29x5 (#67304) Closes #67302 Three high-severity advisories against aiohttp, all fixed in 3.14.4 (verified in the GitHub Advisory Database): | Advisory | Affected | Fixed | Summary | |---|---|---|---| | CVE-2026-111064 / GHSA-5wr8-gcqf-gqf3 | <= 3.14.3 | 3.14.4 | server lacks an initial request/header timeout | | CVE-2026-111066 / GHSA-9xw5-w5jj-pvcg | >= 2.0.0, < 3.14.4 | 3.14.4 | file descriptor exhaustion in multipart requests | | GHSA-2g87-pp6c-29x5 | <= 3.14.3 | 3.14.4 | multiple instances of excessive or unbounded memory/CPU use | Ray runs aiohttp **servers** in two places, so the server-side DoS issues apply directly: - the runtime_env agent (`python/ray/_private/runtime_env/agent/main.py`, `web.Application`), from the copy vendored into the wheel via `RUNTIME_ENV_AGENT_PIP_PACKAGES` (`aiohttp==3.14.3`). This is what and it can't be overridden downstream. - the dashboard, from site-packages: `requirements_compiled.txt` pins 3.14.3, so every image ships it, and the `>= 3.14.1` floor in `requirements.txt` / `ray[default]` still allows affected versions for users. Same shape as #64056: - `python/setup.py`: bundled `aiohttp==3.14.4`; `ray[default]` floor `aiohttp >= 3.14.4`. - `python/requirements.txt`, `python/requirements/test-requirements.txt`: `aiohttp>=3.14.4`. - `ci/build/bundled_dependency_versions_test.py`: expects `aiohttp==3.14.4` (passes locally). - `python/requirements/security-requirements.txt`: adds `aiohttp>=3.14.4`, so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't resolve an affected aiohttp. aiohttp's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes, since raydepsets only sees the compiled files. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67301 (virtualenv); whichever merges later needs a trivial rebase. - `requirements_compiled.txt` / `requirements_compiled_py3.14.txt` and all raydepsets locks: aiohttp 3.14.4, yarl 1.23.0 → 1.25.1 (aiohttp 3.14.4 requires `yarl>=1.25.1`; yarl's own deps are unchanged). Every changed lock line is an aiohttp or yarl version/hash line; the size of the diff is aiohttp 3.14.4 publishing more wheels (e.g. 161 vs 119 hashes in `ray_img_py312.lock`). Checks: - `uv pip compile` of both compiled files with only these two pins changed resolves on py3.11 / py3.14 with no other version moving. - aiohttp 3.14.4/3.14.5 publish wheels for cp310–cp314 on linux x86_64/aarch64, macOS arm64/x86_64 and win_amd64. - The vendored install (`pip install --target ... aiohttp==3.14.4 idna==3.15`) gives aiohttp 3.14.4, yarl 1.25.1, multidict 6.9.1 on py3.10 and py3.14, and `from aiohttp import web` imports from the vendored dir. **Why 3.14.4 and not 3.14.5:** 3.14.5 only adds a WebSocket control-frame fix and widens its `multidict` cap to `<8`. The vendored bundle doesn't pin transitive deps, so 3.14.5 would pull multidict 7.1.0 (a new major) into the runtime_env agent; 3.14.4 keeps it on 6.x. Both satisfy the issue's `>= 3.14.4`. **Behavior change in 3.14.4:** `application/x-www-form-urlencoded` posts with more than 1000 fields now get `413` by default (`client_max_fields` on `web.Application`). - `python/deplocks/ci/ci_windows_depset.lock` (aiohttp 3.10.11): the Windows agent driver env is Python 3.8; aiohttp >= 3.11 requires a newer Python. - `release/requirements_py310.txt` (aiohttp 3.9.5): release tooling (`ray_release`), pip-compiled via Bazel; not shipped. - `release/ray_release/byod/requirements_ml_byod_3.10.txt` (3.13.3): not referenced by any config. - `python/deplocks/ray_img/ray_img_py39.lock`: orphaned, no py3.9 depset. - `releases/2.60.0` also pins 3.14.3; a cherry-pick is a separate decision. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 9ab25fe) Signed-off-by: Sai Miduthuri <[email protected]>
…HSA-2g87-pp6c-29x5 (#67304) Closes #67302 Three high-severity advisories against aiohttp, all fixed in 3.14.4 (verified in the GitHub Advisory Database): | Advisory | Affected | Fixed | Summary | |---|---|---|---| | CVE-2026-111064 / GHSA-5wr8-gcqf-gqf3 | <= 3.14.3 | 3.14.4 | server lacks an initial request/header timeout | | CVE-2026-111066 / GHSA-9xw5-w5jj-pvcg | >= 2.0.0, < 3.14.4 | 3.14.4 | file descriptor exhaustion in multipart requests | | GHSA-2g87-pp6c-29x5 | <= 3.14.3 | 3.14.4 | multiple instances of excessive or unbounded memory/CPU use | Ray runs aiohttp **servers** in two places, so the server-side DoS issues apply directly: - the runtime_env agent (`python/ray/_private/runtime_env/agent/main.py`, `web.Application`), from the copy vendored into the wheel via `RUNTIME_ENV_AGENT_PIP_PACKAGES` (`aiohttp==3.14.3`). This is what and it can't be overridden downstream. - the dashboard, from site-packages: `requirements_compiled.txt` pins 3.14.3, so every image ships it, and the `>= 3.14.1` floor in `requirements.txt` / `ray[default]` still allows affected versions for users. Same shape as #64056: - `python/setup.py`: bundled `aiohttp==3.14.4`; `ray[default]` floor `aiohttp >= 3.14.4`. - `python/requirements.txt`, `python/requirements/test-requirements.txt`: `aiohttp>=3.14.4`. - `ci/build/bundled_dependency_versions_test.py`: expects `aiohttp==3.14.4` (passes locally). - `python/requirements/security-requirements.txt`: adds `aiohttp>=3.14.4`, so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't resolve an affected aiohttp. aiohttp's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes, since raydepsets only sees the compiled files. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67301 (virtualenv); whichever merges later needs a trivial rebase. - `requirements_compiled.txt` / `requirements_compiled_py3.14.txt` and all raydepsets locks: aiohttp 3.14.4, yarl 1.23.0 → 1.25.1 (aiohttp 3.14.4 requires `yarl>=1.25.1`; yarl's own deps are unchanged). Every changed lock line is an aiohttp or yarl version/hash line; the size of the diff is aiohttp 3.14.4 publishing more wheels (e.g. 161 vs 119 hashes in `ray_img_py312.lock`). Checks: - `uv pip compile` of both compiled files with only these two pins changed resolves on py3.11 / py3.14 with no other version moving. - aiohttp 3.14.4/3.14.5 publish wheels for cp310–cp314 on linux x86_64/aarch64, macOS arm64/x86_64 and win_amd64. - The vendored install (`pip install --target ... aiohttp==3.14.4 idna==3.15`) gives aiohttp 3.14.4, yarl 1.25.1, multidict 6.9.1 on py3.10 and py3.14, and `from aiohttp import web` imports from the vendored dir. **Why 3.14.4 and not 3.14.5:** 3.14.5 only adds a WebSocket control-frame fix and widens its `multidict` cap to `<8`. The vendored bundle doesn't pin transitive deps, so 3.14.5 would pull multidict 7.1.0 (a new major) into the runtime_env agent; 3.14.4 keeps it on 6.x. Both satisfy the issue's `>= 3.14.4`. **Behavior change in 3.14.4:** `application/x-www-form-urlencoded` posts with more than 1000 fields now get `413` by default (`client_max_fields` on `web.Application`). - `python/deplocks/ci/ci_windows_depset.lock` (aiohttp 3.10.11): the Windows agent driver env is Python 3.8; aiohttp >= 3.11 requires a newer Python. - `release/requirements_py310.txt` (aiohttp 3.9.5): release tooling (`ray_release`), pip-compiled via Bazel; not shipped. - `release/ray_release/byod/requirements_ml_byod_3.10.txt` (3.13.3): not referenced by any config. - `python/deplocks/ray_img/ray_img_py39.lock`: orphaned, no py3.9 depset. - `releases/2.60.0` also pins 3.14.3; a cherry-pick is a separate decision. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 9ab25fe) Signed-off-by: Sai Miduthuri <[email protected]>
## Why [CVE-2026-104874](GHSA-54p9-h82j-f925) (medium): reference leak in `MultiDict`/`CIMultiDict` items-view union and subtraction. Affects multidict 6.7.0–6.9.0, fixed in 6.9.1. Ray pins 6.7.1. This also unblocks the vLLM 0.33.0 upgrade, which requires `multidict>=6.9.1`. ## What - Add `multidict>=6.9.1` to `python/requirements/security-requirements.txt`. - Add `security-requirements.txt` as a constraint on the TPU base-deps, `ray-llm-base_extra_testdeps` and LLM batch release depsets. They aren't constrained by `requirements_compiled`, so the security floors never reached them. - Regenerate `requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and the raydepsets locks with the standard scripts. The only package change is multidict 6.7.1 → 6.9.1. The lock diff is mostly new hashes. - Because of the [new constraints](https://github.com/ray-project/ray/pull/67798/changes#diff-d1fccea675577e21afe14dda900695c3ff55c4494f718878467bba84f8926e9fR35), idna also moves to 3.20 in those three depsets' locks. This is a different CVE: the new constraint applies every floor in `security-requirements.txt`, and those locks were on idna 3.11 and 3.13, below the existing `idna>=3.15` floor that #64056 added for [CVE-2026-45409](GHSA-65pc-fj4g-8rjx). uv picks 3.20 because these locks aren't pinned by `requirements_compiled`. Not covered: `python/deplocks/tests/data/datatfds_py3.12.lock` and the docs `pip_freeze_ray-py310-cpu.txt` snapshot, which no raydepsets config generates. ## Testing - `ci/ci.sh compile_pip_dependencies`, `compile_pip_dependencies_py314` and `raydepsets build --all-configs` pass, and `--check` reports the locks up to date. - An aiohttp 3.14.4 server/client smoke test with multidict 6.9.1 passes. No existing PR covers this. AI assistance (Claude Code) was used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Jeffrey Wang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…curity fixes (#68047) ## Description Brings two dependency security fixes that landed on master after the 2.57 cut to `releases/2.57.2`. Both are already on 2.58.x: - **idna, from #64056.** [CVE-2026-45409 / GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx) is a medium-severity denial of service (CVSS 5.3) in idna before 3.15. The 2024 fix for CVE-2024-3651 was incomplete: crafted input to `idna.encode()` can still take a long time to process. 2.57.1 shipped idna 3.12. - **log4j, cherry-picked from #64269.** `log4j-api`, `log4j-core` and `log4j-slf4j-impl` go from 2.25.3 to 2.25.4 in `ray_dist.jar`. 2.25.4 fixes every published log4j-core advisory, including CVE-2026-34477, -34478, -34479 and -34480 (April 2026) and CVE-2025-68161. Master and 2.58.2 are on 2.25.4. These are the fixes reported in #64050 and #63919. **Stacked on #68041** (Brotli), which is stacked on #68040 (eMudhra). `idna>=3.7` is the line just above #68040's certifi change in `security-requirements.txt`. Merge #68040, then #68041, then retarget this PR to `releases/2.57.2`. ## Changes 1. **idna** (`5edd077da0`) - `security-requirements.txt`: `idna>=3.7` → `idna>=3.15`. - `requirements_compiled.txt`: idna 3.18. `requirements_compiled_py3.14.txt`: idna 3.15. Both as on `releases/2.58.2`. - Locks: - Where 2.58.2 has the same lock, it gets 2.58.2's idna entry. - Some locks are still below 3.15 on 2.58.2 and 2.59.1, and get idna 3.18 here: TPU base deps (3.11), ray-llm testdeps (3.13), datatfds, llm_batch, the multimodal byod py3.10 locks (3.7) and `ray_img_py39.lock`. - Regenerated with `ci/ci.sh compile_pip_dependencies` (py3.11), then `raydepsets build --all-configs`. 2. **log4j** (`90b2394af3`): a clean cherry-pick of #64269, the three version lines in `java/dependencies.bzl`. 3. **idna in release tooling** (`ad13264cbc`): 3.7 → 3.18 in two files. Both are still on 3.7 on master. - `release/requirements_py310.txt`: the `py_deps_py310` Bazel lock and the release-test launcher environment. - `release/ray_release/byod/requirements_ml_byod_3.10.txt`: unreferenced, left over from the ray-ml image. - Only the version and hash lines change. The file's generator, `//release:requirements_py310.update`, can't run on this branch: it fails on `sphinx==8.2.3` (requires Python ≥3.11) from `requirements-doc.txt`, with or without this change. 4. **aiohttp in `release/requirements_py310.txt`** (`ea8eb14b97`): this file was on aiohttp 3.9.5, below #68040's `aiohttp>=3.14.4` floor. - `requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15` floors, next to the existing `certifi` and `h11` floors. - The `.txt` is recompiled: aiohttp 3.9.5 → 3.14.5, yarl 1.9.4 → 1.25.1, aiosignal 1.3.1 → 1.4.0, and the new aiohappyeyeballs 2.7.1 and propcache 0.5.4. No other pin changes. - How it's recompiled: with the same tool as `//release:requirements_py310.update` (pip-tools 6.6.0 on pip 22.0.4 and Python 3.10, `--no-upgrade --generate-hashes`). The only difference: during the compile, the `release/requirements-doc.txt` symlink is swapped for the same doc requirements at the versions already in the `.txt`, because upstream's `sphinx==8.2.3` needs Python ≥3.11. Before the `.in` change, this reproduces the existing `.txt` byte for byte. **Not ported from #64056:** - The `RUNTIME_ENV_AGENT_PIP_PACKAGES` pin. On 2.57 the runtime env agent installs `aiohttp` unpinned, so its bundled idna is whatever is current when the wheel is built. - The aiohttp floor. #68040 already sets 3.14.4. - The bundled-versions guard test, because it asserts that pin. ## Related issues Related to #64056, #64269, #64050 and #63919. ## Testing - `ci/ci.sh compile_pip_dependencies` (py3.11): only idna changes. - `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then `--check`: "Lock files are up to date." Only idna pins change: | Before | After | |---|---| | 3.7 ×6, 3.11 ×6, 3.12 ×91, 3.13 ×3 | 3.15 ×7, 3.18 ×99 | - `bazel build` of the three log4j Maven artifacts and `//java:io_ray_ray_api`: succeeded with 2.25.4. - `release/requirements_py310.txt` on Python 3.10: - `uv pip install --dry-run --require-hashes` covers all 219 packages, and a full resolve has no conflicts. - `@py_deps_py310_idna` fetches. - The idna 3.18 hashes match PyPI. - `release/requirements_py310.txt` after the recompile: `uv pip install --dry-run --require-hashes` on Python 3.10 covers 221 packages, and a full resolve has no conflicts. AI assistance (Claude Code) was used to prepare this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: nh-atuan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Nguyễn Hồ Anh Tuấn <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
…in release tooling (#68051) ## Description Closes the remaining security gaps on `releases/2.58.2` so that it matches the 2.57.2 picks (#68040, #68041, #68047). log4j (2.25.4) and the `security-requirements.txt` floors are already correct here. ### 1. idna 3.15+ in the remaining locks (`fdcca7fe01`) [CVE-2026-45409 / GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx) is a medium-severity denial of service in idna before 3.15. 2.58.2 has the `idna>=3.15` floor from #64056. But locks that aren't constrained by `requirements_compiled.txt` kept vulnerable idna, and they now get idna 3.18, the compiled pin: | Lock | Before | |---|---| | TPU base deps py3.10–3.13 / py3.14 (these feed the **TPU images**) | 3.11 / 3.13 | | ray-llm testdeps py3.11/3.12 | 3.13 | | `datatfds_py3.12`, `llm_batch_single_node_benchmark_py312_cu130` | 3.11 | | multimodal byod py3.10 release locks (×5) | 3.7 | | `ray_img_py39.lock`, `requirements_ml_byod_3.10.txt` (unreferenced) | 3.7 | `large_image_embedding_py3.10.lock` was also still on certifi 2025.1.31 and virtualenv 20.33.1. It now uses its sibling locks' eMudhra pins (certifi 2026.10.19, virtualenv 21.14.12 and its dependencies, aiohttp 3.14.4), the same as on 2.57.2. ### 2. aiohttp and idna in `release/requirements_py310.txt` (`30d47f3129`) This file is the `py_deps_py310` Bazel lock and the release-test launcher environment. It pinned aiohttp 3.9.5 and idna 3.7. `requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15` floors, and the `.txt` is recompiled: | Package | Before | After | |---|---|---| | aiohttp | 3.9.5 | 3.14.5 | | yarl | 1.9.4 | 1.25.1 | | aiosignal | 1.3.1 | 1.4.0 | | idna | 3.7 | 3.20 | | aiohappyeyeballs, propcache | none | 2.7.1, 0.5.4 | No other pin changes. It's recompiled with the same tool as `//release:requirements_py310.update`: pip-tools 6.6.0 on pip 22.0.4 and Python 3.10, `--no-upgrade --generate-hashes`. The one workaround: `release/requirements-doc.txt`, a symlink to `doc/requirements-doc.txt`, pins `sphinx==8.2.3`, which needs Python ≥3.11. For the compile, that symlink was replaced by the same doc requirements at the versions already in the `.txt`, then restored. Before the `.in` change, this reproduces the existing `.txt` byte for byte. ### Left as is (same on 2.57.2 and master) - **`ci_windows_depset.lock`:** compiled for Python 3.8, where aiohttp tops out at 3.10.11. - **`ray_img_py39.lock`:** aiohttp stays at 3.11.16, because the Python 3.9 line tops out at 3.13.x. - **`requirements_ml_byod_3.10.txt`:** aiohttp, brotli and yarl stay as they are. The file is unreferenced and has no generator. - **The doc pip-freeze snapshot:** regenerated from the image by the release docs step. - **The raydepsets test fixture.** ## Related issues Related to #64056, #67962, #68047 (2.57.2) and #68048 (master). ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then `--check`: "Lock files are up to date." The locks change only idna and, in `large_image_embedding`, the package set above. - `release/requirements_py310.txt`: `uv pip install --dry-run --require-hashes` on Python 3.10 covers 221 packages, and a full resolve has no conflicts. - A scan of every pinned file for aiohttp, certifi, brotli, idna, virtualenv and yarl below their floors finds only the files listed under "Left as is". AI assistance (Claude Code) was used to prepare this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
#64056 set idna>=3.15 and idna 3.18 in requirements_compiled.txt, but files not constrained by the compiled file kept vulnerable pins: - multimodal byod py3.10 release locks (audio_transcription, document_embedding, image_classification, video_object_detection): 3.7 - release/requirements_py310.txt (py_deps_py310 bazel lock and the release-test launcher env): 3.7 - datatfds_py3.12.lock: 3.11 - requirements_ml_byod_3.10.txt (unreferenced): 3.7 All move to 3.18, the compiled pin. raydepsets build --all-configs --check passes. The two .txt files change only their idna version and hash lines, because //release:requirements_py310.update no longer builds (its pip_compile.py target is gone from rules_python). Instead, checked with uv pip install --dry-run --require-hashes on python 3.10. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…68048) ## Description Bumps idna and aiohttp in files that are still below master's security floors. Those floors only reach locks built against `requirements_compiled.txt`, so these files never picked them up. ### idna: CVE-2026-45409 (`18de4f0ed0`) [CVE-2026-45409 / GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx) is a medium-severity denial of service (CVSS 5.3) in idna before 3.15. #64056 set `idna>=3.15` and idna 3.18 in `requirements_compiled.txt`, but these files kept vulnerable pins: | File | Before | |---|---| | `release/ray_release/byod/{audio_transcription,document_embedding,image_classification,video_object_detection}_py3.10.lock` (multimodal release-test images) | 3.7 | | `release/requirements_py310.txt` (the `py_deps_py310` Bazel lock and the release-test launcher environment) | 3.7 | | `python/deplocks/tests/data/datatfds_py3.12.lock` | 3.11 | | `release/ray_release/byod/requirements_ml_byod_3.10.txt` (unreferenced, but present in the tree) | 3.7 | All of them move to 3.18, the compiled pin. ### aiohttp in `release/requirements_py310.txt` (`eaf171af6f`) This file still pinned aiohttp 3.9.5, below the `aiohttp>=3.14.4` floor from #67304 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5): | Package | Before | After | |---|---|---| | aiohttp | 3.9.5 | 3.14.4 | | yarl | 1.9.4 | 1.25.1 | | aiosignal | 1.3.1 | 1.4.0 | | aiohappyeyeballs | none | 2.6.1 (new aiohttp dependency) | | propcache | none | 0.4.1 (new aiohttp and yarl dependency) | - These are the versions in `requirements_compiled.txt`. Every other pin is unchanged; multidict, frozenlist, attrs and async-timeout already satisfy aiohttp 3.14.4. - `requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15`, next to its existing `certifi` and `h11` floors, so a future regen can't move them back. ### Why `requirements_py310.txt` is edited by hand The generator can't run: - `//release:requirements_py310.update` and `_test` don't build on master, because `@rules_python//python/pip_install:pip_compile.py` no longer exists. - The `.in` can't resolve on Python 3.10 anyway. `requirements-doc.txt` pins `sphinx==8.2.3` (Python ≥3.11), while the `.txt` still has 7.3.7. So the new versions come from a `uv pip compile` with every other pin in the `.txt` held fixed. Only those entries (version and hashes) are changed, and the existing `# via` lines are kept. I'll fix the generator separately. ## Related issues Follow-up to #64056 (#64050, #63919) and #67304. The same idna fix is being picked onto 2.57.2 in #68047. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then `--check`: "Lock files are up to date." In the locks only idna versions change: 3.7 ×6 and 3.11 ×1 → 3.18 ×7. - `release/requirements_py310.txt` on Python 3.10: `uv pip install --dry-run --require-hashes` covers all 221 packages, and a full resolve has no conflicts. - The hashes for aiohttp, yarl, aiosignal, propcache and aiohappyeyeballs match the same versions in master's deplocks (97 or more locks each, 0 mismatches). The idna 3.18 hashes match PyPI. AI assistance (Claude Code) was used to prepare this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>

Description
Updates bundled dependency versions in the Ray Python wheel to address scanner-visible vulnerable artifacts reported in installed
site-packages/ray/...contents.This PR updates:
log4j-api,log4j-core, andlog4j-slf4j-implfrom2.25.3to2.25.4forray/jars/ray_dist.jar.aiohttp==3.14.0andidna==3.15, so generated wheels include fixed*.dist-infoartifacts.aiohttp>=3.14.0andidna>=3.15.It also adds a small CI test to guard the bundled dependency versions used by the wheel packaging path.
Related issues
Fixes #64050
Additional information
Validated locally with:
python -m pytest ci/raydepsets/tests/test_bundled_dependency_versions.py -q bazel test //ci/raydepsets:test_bundled_dependency_versionsAlso verified that installing the runtime env agent package set produces: