Repository navigation
[deps] Bump aiohttp to 3.14.4 for CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5 - #67304
Merged
Merged
Conversation
…HSA-2g87-pp6c-29x5 aiohttp <= 3.14.3 is affected by three high-severity server-side DoS advisories published 2026-10-19/20, all fixed in 3.14.4. Ray runs aiohttp servers in the runtime_env agent (vendored copy) and the dashboard (site-packages). - setup.py: bundled runtime_env agent aiohttp 3.14.3 -> 3.14.4, and the ray[default] floor aiohttp >= 3.14.1 -> >= 3.14.4. - requirements.txt / test-requirements.txt floor >= 3.14.4. - requirements_compiled*.txt and all locks: aiohttp 3.14.4, plus yarl 1.25.1, which aiohttp 3.14.4 requires (>= 1.25.1). - bundled_dependency_versions_test.py: expect aiohttp==3.14.4. 3.14.4 rather than 3.14.5: 3.14.5 only adds a WebSocket fix and widens its multidict cap to <8, which would pull multidict 7 into the unpinned vendored agent bundle. Closes #67302 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Keeps a future compile_pip_dependencies run from resolving an aiohttp affected by CVE-2026-111064, CVE-2026-111066 or GHSA-2g87-pp6c-29x5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
marked this pull request as ready for review
October 23, 2026 00:58
elliot-barn
requested review from
a team,
edoakes and
richardliaw
as code owners
October 23, 2026 00:58
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
This PR is too large for Bugbot to review. It changes 46,899 lines and 4,111,898 characters. Split the change into smaller pull requests to get a review. |
elliot-barn
added a commit
that referenced
this pull request
Oct 23, 2026
## Why Follow-up to #67295 / #67298 for the eMudhra intermediate CA compromise (https://emudhra.we-have-a-problem.com/). The `pip` runtime_env creates venvs with `python -m virtualenv ... --no-download` (`python/ray/_private/runtime_env/virtualenv_utils.py`), which seeds each venv with the pip bundled **inside** virtualenv, not the image's pip. Ray then runs that pip to install the user's packages (`runtime_env/pip.py`), only reinstalling pip if the user sets `pip_version`. - virtualenv 21.2.4 (current lock) bundles pip 26.0.1, whose vendored certifi still trusts the compromised intermediates. - virtualenv 21.14.12 (2026-10-21) bundles pip 26.2.2. So even after #67295 every pip runtime_env on Ray images gets an affected pip. This applies to all Linux images (`ray_img`, base, llm, ray-torch locks), not only Windows/macOS. Users who `pip install ray` themselves already get the latest virtualenv (`ray[default]` only requires `virtualenv >=20.0.24, !=20.21.1`). ## What virtualenv 21.14 raises several minimums, so these move together in `requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and the locks: | Package | From | To | Why | |---|---|---|---| | virtualenv | 21.2.4 | 21.14.12 | bundled pip 26.2.2 | | packaging | 25.0 (26.1 on py3.14) | 26.3 | virtualenv `packaging>=26.3` | | typing-extensions | 4.15.0 | 4.16.0 | virtualenv `>=4.16` (py<3.11) | | distlib | 0.4.0 | 0.4.3 | virtualenv `>=0.4.3` | | python-discovery | 1.2.2 | 1.6.1 | virtualenv `>=1.6.1` | - The compiled files were edited in place (versions plus the `# via` changes: packaging gains `virtualenv`, platformdirs loses `python-discovery`). `uv pip compile` of both files with only these five pins changed resolves on py3.10/3.11 (main file) and py3.14 (py3.14 file) with no other version moving, so nothing in the full set caps `packaging<26` or `typing-extensions<4.16`. - All locks were regenerated with raydepsets (`--all-configs`, uv 0.9.26 from `WORKSPACE`). Constrained depsets change only the five packages above. - Unconstrained depsets (TPU base deps, ray-llm `base_extra_testdeps`, `datatfds`, release BYOD audio/document/image/video/llm_batch) kept their old virtualenv because uv prefers existing pins. They were upgraded with `-P` for virtualenv and its direct deps, pinned to the compiled versions (incl. filelock 3.29.0 / platformdirs 4.9.6), then re-normalized with raydepsets. - **langchain-core 0.3.84 → 0.3.76** in the two ray-llm `base_extra_testdeps` locks (release tests only): every langchain-core from 0.3.77 caps `packaging<26`. Moving forward instead needs `langchain-text-splitters` 1.x, which is out of scope here. - `python/deplocks/ray_img/ray_img_py39.lock` is orphaned (no py3.9 depset) and left at virtualenv 20.29.1. - `python/requirements/security-requirements.txt`: adds `virtualenv>=21.14.12` (the first virtualenv release bundling pip 26.2.2), so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't fall back to a virtualenv that seeds runtime_env venvs with an affected pip. virtualenv's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67304 (aiohttp); whichever merges later needs a trivial rebase. ## Testing Needs a CI round on the runtime_env tests (this is the tool that builds every pip runtime_env venv); no local runtime_env test run yet. 🤖 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]>
Signed-off-by: Elliot Barnwell <[email protected]>
This was referenced Oct 23, 2026
Merged
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
Follow-up to #67295 / #67298 for the eMudhra intermediate CA compromise (https://emudhra.we-have-a-problem.com/). The `pip` runtime_env creates venvs with `python -m virtualenv ... --no-download` (`python/ray/_private/runtime_env/virtualenv_utils.py`), which seeds each venv with the pip bundled **inside** virtualenv, not the image's pip. Ray then runs that pip to install the user's packages (`runtime_env/pip.py`), only reinstalling pip if the user sets `pip_version`. - virtualenv 21.2.4 (current lock) bundles pip 26.0.1, whose vendored certifi still trusts the compromised intermediates. - virtualenv 21.14.12 (2026-10-21) bundles pip 26.2.2. So even after #67295 every pip runtime_env on Ray images gets an affected pip. This applies to all Linux images (`ray_img`, base, llm, ray-torch locks), not only Windows/macOS. Users who `pip install ray` themselves already get the latest virtualenv (`ray[default]` only requires `virtualenv >=20.0.24, !=20.21.1`). virtualenv 21.14 raises several minimums, so these move together in `requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and the locks: | Package | From | To | Why | |---|---|---|---| | virtualenv | 21.2.4 | 21.14.12 | bundled pip 26.2.2 | | packaging | 25.0 (26.1 on py3.14) | 26.3 | virtualenv `packaging>=26.3` | | typing-extensions | 4.15.0 | 4.16.0 | virtualenv `>=4.16` (py<3.11) | | distlib | 0.4.0 | 0.4.3 | virtualenv `>=0.4.3` | | python-discovery | 1.2.2 | 1.6.1 | virtualenv `>=1.6.1` | - The compiled files were edited in place (versions plus the `# via` changes: packaging gains `virtualenv`, platformdirs loses `python-discovery`). `uv pip compile` of both files with only these five pins changed resolves on py3.10/3.11 (main file) and py3.14 (py3.14 file) with no other version moving, so nothing in the full set caps `packaging<26` or `typing-extensions<4.16`. - All locks were regenerated with raydepsets (`--all-configs`, uv 0.9.26 from `WORKSPACE`). Constrained depsets change only the five packages above. - Unconstrained depsets (TPU base deps, ray-llm `base_extra_testdeps`, `datatfds`, release BYOD audio/document/image/video/llm_batch) kept their old virtualenv because uv prefers existing pins. They were upgraded with `-P` for virtualenv and its direct deps, pinned to the compiled versions (incl. filelock 3.29.0 / platformdirs 4.9.6), then re-normalized with raydepsets. - **langchain-core 0.3.84 → 0.3.76** in the two ray-llm `base_extra_testdeps` locks (release tests only): every langchain-core from 0.3.77 caps `packaging<26`. Moving forward instead needs `langchain-text-splitters` 1.x, which is out of scope here. - `python/deplocks/ray_img/ray_img_py39.lock` is orphaned (no py3.9 depset) and left at virtualenv 20.29.1. - `python/requirements/security-requirements.txt`: adds `virtualenv>=21.14.12` (the first virtualenv release bundling pip 26.2.2), so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't fall back to a virtualenv that seeds runtime_env venvs with an affected pip. virtualenv's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67304 (aiohttp); whichever merges later needs a trivial rebase. Needs a CI round on the runtime_env tests (this is the tool that builds every pip runtime_env venv); no local runtime_env test run yet. 🤖 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 8fdacd3) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
…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]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
Follow-up to #67295 / #67298 for the eMudhra intermediate CA compromise (https://emudhra.we-have-a-problem.com/). The `pip` runtime_env creates venvs with `python -m virtualenv ... --no-download` (`python/ray/_private/runtime_env/virtualenv_utils.py`), which seeds each venv with the pip bundled **inside** virtualenv, not the image's pip. Ray then runs that pip to install the user's packages (`runtime_env/pip.py`), only reinstalling pip if the user sets `pip_version`. - virtualenv 21.2.4 (current lock) bundles pip 26.0.1, whose vendored certifi still trusts the compromised intermediates. - virtualenv 21.14.12 (2026-10-21) bundles pip 26.2.2. So even after #67295 every pip runtime_env on Ray images gets an affected pip. This applies to all Linux images (`ray_img`, base, llm, ray-torch locks), not only Windows/macOS. Users who `pip install ray` themselves already get the latest virtualenv (`ray[default]` only requires `virtualenv >=20.0.24, !=20.21.1`). virtualenv 21.14 raises several minimums, so these move together in `requirements_compiled.txt`, `requirements_compiled_py3.14.txt` and the locks: | Package | From | To | Why | |---|---|---|---| | virtualenv | 21.2.4 | 21.14.12 | bundled pip 26.2.2 | | packaging | 25.0 (26.1 on py3.14) | 26.3 | virtualenv `packaging>=26.3` | | typing-extensions | 4.15.0 | 4.16.0 | virtualenv `>=4.16` (py<3.11) | | distlib | 0.4.0 | 0.4.3 | virtualenv `>=0.4.3` | | python-discovery | 1.2.2 | 1.6.1 | virtualenv `>=1.6.1` | - The compiled files were edited in place (versions plus the `# via` changes: packaging gains `virtualenv`, platformdirs loses `python-discovery`). `uv pip compile` of both files with only these five pins changed resolves on py3.10/3.11 (main file) and py3.14 (py3.14 file) with no other version moving, so nothing in the full set caps `packaging<26` or `typing-extensions<4.16`. - All locks were regenerated with raydepsets (`--all-configs`, uv 0.9.26 from `WORKSPACE`). Constrained depsets change only the five packages above. - Unconstrained depsets (TPU base deps, ray-llm `base_extra_testdeps`, `datatfds`, release BYOD audio/document/image/video/llm_batch) kept their old virtualenv because uv prefers existing pins. They were upgraded with `-P` for virtualenv and its direct deps, pinned to the compiled versions (incl. filelock 3.29.0 / platformdirs 4.9.6), then re-normalized with raydepsets. - **langchain-core 0.3.84 → 0.3.76** in the two ray-llm `base_extra_testdeps` locks (release tests only): every langchain-core from 0.3.77 caps `packaging<26`. Moving forward instead needs `langchain-text-splitters` 1.x, which is out of scope here. - `python/deplocks/ray_img/ray_img_py39.lock` is orphaned (no py3.9 depset) and left at virtualenv 20.29.1. - `python/requirements/security-requirements.txt`: adds `virtualenv>=21.14.12` (the first virtualenv release bundling pip 26.2.2), so a future `ci/ci.sh compile_pip_dependencies` / `compile_pip_dependencies_py314` run (both take this file as an input) can't fall back to a virtualenv that seeds runtime_env venvs with an affected pip. virtualenv's `# via` in both compiled files gains `-r python/requirements/security-requirements.txt`; no lock changes. Adjacent-line edits to the same 3-line file are also in #67305 (certifi) and #67304 (aiohttp); whichever merges later needs a trivial rebase. Needs a CI round on the runtime_env tests (this is the tool that builds every pip runtime_env venv); no local runtime_env test run yet. 🤖 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 8fdacd3) Signed-off-by: Sai Miduthuri <[email protected]>
sai-miduthuri
pushed a commit
that referenced
this pull request
Oct 23, 2026
…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]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…e python to 3.10 (#67256) (#67320) Cherry-pick of #67256 (master commit dc5d25c) onto `releases/2.60.0`. ## Why On this branch, every Python 3.10 base image that misses the wanda cache fails to build. In postmerge build 20439, that was: - All 11 `ray-slim` py3.10 base images. - 3 aarch64 py3.10 CUDA base images. - `smoke test build-docker.sh`, which always builds `base-deps` from scratch. Each one fails in its `conda install python=3.10` step: ``` RemoveError: This operation will remove conda without replacing it with another version of conda. ``` conda-forge `certifi` builds uploaded since 2026-10-19 require `python>=3.11`, so the py3.10 solve drops `certifi`, `requests` and `conda`. #67256 caps `certifi<2026` for Python 3.10 only, in `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile`. On master, the smoke test failed in postmerge builds 20426 and 20436. It has passed in every build since 20445, the first to include #67256. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 2 files, 19 insertions and 2 deletions, and the same `git patch-id --stable`. No prerequisite commits are missing. Both Dockerfiles on this branch were identical to #67256's parent, so after the pick they match master at dc5d25c. This PR is the bottom of stack #67354, in master's order. Above it are the picks of #67011 (#67321), #67295 (#67322), #67305 (#67342), #67301 (#67343), #67304 (#67344) and #67350 (#67352). #67011 and #67295 change base image inputs, so their image builds need this fix. At the top of the stack, the pick of #67350 replaces this cap with a `certifi=2026.10.19` pin, as on master. Not a duplicate: this branch doesn't contain #67256, and no PR against `releases/2.60.0` references it. ## Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed (trailing whitespace, end of file, large files) | This PR changes the base image inputs, so CI rebuilds the base images, including the py3.10 ones, instead of taking them from the cache. I didn't build the images locally. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…n images for eMudhra CA compromise (#67295) (#67322) Cherry-pick of #67295 (master commit 79dcc96) onto `releases/2.60.0`. ## Why The private keys of eight eMudhra intermediate CAs were compromised, and images built from this branch still trust them. They ship pip 24.3.1, which trusts its own vendored `certifi`, and an older `certifi` pin in the lock files. #67295 changes three things: - It installs pip 26.2.2 in `docker/base-deps` and `docker/base-slim`. Python 3.10 gets pip from PyPI with `uv`, because conda-forge's pip 26.2.2 requires Python 3.11 or newer. - It moves the `uv` binary to 0.13.4. - It pins `certifi` 2026.10.19 in `requirements_compiled*.txt` and the lock files. #67295 has the full analysis. ## Cherry-pick details Applied with `git cherry-pick -x`. Git merged 112 of the 113 files without conflicts, and in those files the added and removed lines are identical to the master commit. "Deviations from #67295" below covers the other files. After the pick: - `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile` match master at 79dcc96. - Every `certifi` pin in `python/deplocks/`, `python/requirements_compiled*.txt` and `release/ray_release/byod/` is 2026.10.19, as on master. This PR is stacked on the picks of #67256 (#67320) and #67011 (#67321). Its Dockerfile changes edit lines that #67256 adds, and #67011 sits below it to keep master's order. The picks of #67305 (#67342), #67301 (#67343), #67304 (#67344) and #67350 (#67352) sit on top of it. Not a duplicate: this branch doesn't contain #67295, and no PR against `releases/2.60.0` references it. ## Deviations from #67295 - **`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`:** this branch compiles that lock without the `requirements_compiled_py3.14.txt` constraint, so its `certifi` pin was 2026.5.20 rather than master's 2026.4.22, and its `# via` lines differ. This PR replaces its `certifi` entry with #67295's `certifi==2026.10.19` and hashes, and keeps the branch's `# via` lines. - **Left out `python/deplocks/docs/docstring_examples_base_depset_py3.10.lock` and `docstring_examples_depset_py3.10.lock`:** these depsets don't exist on this branch. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the 113 changed files>` | Passed (trailing whitespace, end of file, large files) | I didn't run the dependency check or build the images locally. On this PR, CI's `:tapioca: build: raydepsets: compile all dependencies` job runs `raydepsets build --all-configs --check`, and the image jobs rebuild the base images with pip 26.2.2 and the new locks. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…here (#67305) (#67342) Cherry-pick of #67305 (master commit aab6295) onto `releases/2.60.0`. ## Why This is a follow-up to #67295 for the eMudhra intermediate CA compromise. #67295, picked in #67322, pins `certifi==2026.10.19` in the compiled requirements and lock files. #67305 raises the `certifi` floor to `>=2026.10.19` in the files those are compiled from, so a future recompile can't resolve an affected `certifi`: - `python/requirements/security-requirements.txt` - `python/requirements/cloud-requirements.txt` - `release/requirements_py310.in` - `release/requirements_windows.in` No compiled or lock files change, because every compiled output in this stack already pins 2026.10.19. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 4 files, 4 insertions and 4 deletions, and the same `git patch-id --stable`. No prerequisite commits are missing. The 4 files were identical to #67305's parent, so after the pick they match master at aab6295. This PR is stacked on #67322 (the pick of #67295), because the new floor only matches the compiled pins once #67295 is in. The picks of #67301 (#67343) and #67304 (#67344) sit on top of it, because all three edit adjacent lines of `security-requirements.txt`. Not a duplicate: this branch doesn't contain #67305, and no PR against `releases/2.60.0` references it. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the 4 changed files>` | Passed | AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…A compromise (#67301) (#67343) Cherry-pick of #67301 (master commit 8fdacd3) onto `releases/2.60.0`. ## Why This is a follow-up to #67295 for the eMudhra intermediate CA compromise. Ray creates `pip` runtime_env venvs with `virtualenv --no-download`, which seeds each venv with the pip bundled inside virtualenv. The virtualenv on this branch, 21.2.4, bundles pip 26.0.1, whose vendored `certifi` still trusts the compromised intermediates. virtualenv 21.14.12 bundles pip 26.2.2. #67301 moves virtualenv to 21.14.12 in `requirements_compiled*.txt` and the lock files, together with the minimum versions virtualenv 21.14 raises: - `packaging` to 26.3 - `typing-extensions` to 4.16.0 - `distlib` to 0.4.3 - `python-discovery` to 1.6.1 It also adds `virtualenv>=21.14.12` to `security-requirements.txt`. As on master, the two ray-llm `base_extra_testdeps` locks move `langchain-core` from 0.3.84 to 0.3.76, because every `langchain-core` from 0.3.77 on caps `packaging<26`. ## Cherry-pick details Applied with `git cherry-pick -x`. Git merged 104 of the 106 files without conflicts, and in those files the added and removed lines are identical to the master commit. "Deviations from #67301" below covers the other files. This PR is stacked on the pick of #67305 (#67342), because both edit `security-requirements.txt`. Not a duplicate: this branch doesn't contain #67301, and no PR against `releases/2.60.0` references it. ## Deviations from #67301 - **`python/requirements_compiled_py3.14.txt`:** this branch maintains this file by hand (`ci/ci.sh` has no py3.14 compile step), so its surrounding lines differ from master's. - **Same as #67301:** the five version changes, and its `# via` edits: `packaging` gains `virtualenv`, and `platformdirs` loses `python-discovery`. - **Left out:** master's `-r python/requirements/security-requirements.txt` line under `virtualenv`. On this branch that file isn't an input to the py3.14 file. - **`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`:** this branch compiles that lock without Ray's py3.14 constraints, so it had its own versions: `packaging` 26.2, `python-discovery` 1.3.1 and `virtualenv` 21.3.3. This PR replaces the five entries with #67301's versions and hashes, keeps the branch's `# via` lists, and applies the same two `# via` edits. - **Left out `python/deplocks/docs/docstring_examples_base_depset_py3.10.lock` and `docstring_examples_depset_py3.10.lock`:** these depsets don't exist on this branch. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`, run on the top of this stack (through the pick of #67304) | Passed: "Lock files are up to date." | I didn't run the runtime_env tests locally. CI runs them, along with `raydepsets build --all-configs --check` and the image builds. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
CVE-2026-111066, GHSA-2g87-pp6c-29x5 (#67304) (#67344) Cherry-pick of #67304 (master commit 9ab25fe) onto `releases/2.60.0`. ## Why aiohttp 3.14.3, which this branch ships, has three high-severity advisories that are fixed in 3.14.4: CVE-2026-111064, CVE-2026-111066 and GHSA-2g87-pp6c-29x5. Ray runs aiohttp servers in two places: the runtime_env agent, from the copy vendored into the wheel, and the dashboard. #67304 makes these changes: - `python/setup.py`: moves the vendored pin to `aiohttp==3.14.4` and the `ray[default]` floor to `>= 3.14.4`. - `python/requirements.txt`, `python/requirements/test-requirements.txt` and `security-requirements.txt`: raise the `aiohttp` floor to 3.14.4. - The compiled requirements and lock files: move to `aiohttp` 3.14.4 and `yarl` 1.25.1. aiohttp 3.14.4 requires `yarl>=1.25.1`. Behavior change in aiohttp 3.14.4: `application/x-www-form-urlencoded` posts with more than 1000 fields now get a `413` response by default. ## Cherry-pick details Applied with `git cherry-pick -x`. Git merged 107 of the 110 files without conflicts. `python/deplocks/ray-torch/ray-torch-cu128_base_py3.11.lock` also conflicted, but only in surrounding lines, and its resolved changes are identical to master's. In those 108 files the added and removed lines are identical to the master commit. "Deviations from #67304" below covers the other files. This PR is stacked on the pick of #67301 (#67343), because both edit `security-requirements.txt`. The pick of #67350 (#67352) sits on top of it. Not a duplicate: this branch doesn't contain #67304, and no PR against `releases/2.60.0` references it. ## Deviations from #67304 - **`python/requirements_compiled_py3.14.txt`:** as in the pick of #67301, this PR keeps this branch's hand-maintained lines. - **Same as #67304:** `aiohttp` 3.14.4 and `yarl` 1.25.1. - **Left out:** master's `-r python/requirements/security-requirements.txt` line under `aiohttp`. On this branch that file isn't an input to the py3.14 file. - **`python/deplocks/ray-torch/ray-torch-cu128_base_py3.14.lock`:** this branch had `yarl` 1.24.2 instead of master's 1.23.0. This PR replaces its `aiohttp` and `yarl` entries with #67304's versions and hashes, and keeps the branch's `# via` lists. - **Left out `python/deplocks/docs/docstring_examples_base_depset_py3.10.lock` and `docstring_examples_depset_py3.10.lock`:** these depsets don't exist on this branch. ## Testing | Command | Result | |---|---| | `pre-commit run --files <the changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`, run on the top of this stack (through the pick of #67304) | Passed: "Lock files are up to date." | I didn't run anything else locally. CI's `:coral: reef: ci+release tooling tests` job runs `//ci/build:bundled_dependency_versions_test`, which checks the vendored `aiohttp==3.14.4` pin. CI also runs the raydepsets check and the image builds. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Elliot Barnwell <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Oct 26, 2026
…a fix releases on every Python (#67350) (#67352) Cherry-pick of #67350 (master commit 9a44846) onto `releases/2.60.0`. ## Why #67256, picked in #67320 at the bottom of this stack, avoids the py3.10 `RemoveError` by capping conda's `certifi` at `<2026` for Python 3.10. With that cap, conda installs `certifi` 2025.11.12, which still trusts the compromised eMudhra roots. The py3.10 images end up patched only because the lock install overwrites it with `certifi` 2026.10.19, which leaves stale `conda-meta` and package-cache records behind. conda-forge has since patched `certifi` 2026.10.19 to allow Python 3.10. #67350 pins `certifi=2026.10.19` in the conda step for every Python version, matching the lock files, and removes the py3.10-only cap. pip 26.2.2 still comes from PyPI on Python 3.10. ## Cherry-pick details Applied cleanly with `git cherry-pick -x`. The change is identical to the master commit: the same 2 files, 20 insertions and 16 deletions, and the diff matches line for line. No prerequisite commits are missing. #67350 edits the conda block that #67256 added and #67295 extended. Below this PR, the picks of #67256 (#67320) and #67295 (#67322) leave both Dockerfiles identical to #67350's parent. After this pick they match master at 9a44846. This PR is the top of stack #67354. It was merged to master after every other PR in the stack, so it goes last here too. Below it are the picks of: - #67256 (#67320) - #67011 (#67321) - #67295 (#67322) - #67305 (#67342) - #67301 (#67343) - #67304 (#67344) Not a duplicate: this branch doesn't contain #67350, and no other PR against `releases/2.60.0` picks it. ## Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed (trailing whitespace, end of file, large files) | I didn't build the images locally. This PR changes the base image inputs, so CI rebuilds the base images, including the py3.10 ones. #67350's own test ran the same conda step in `condaforge/miniforge3:24.11.3-0` for Python 3.10 to 3.14 in both Dockerfiles. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Oct 28, 2026
…67295, #67301, #67298, #67305, #67304, #67350) (#67487) Cherry-picks the eMudhra CA compromise fixes and the aiohttp 3.14.4 DoS fixes onto `releases/2.59.1`, as six commits in this order: 1. #67295 Pin pip 26.2.2 and certifi 2026.10.19 in images 2. #67301 Bump virtualenv to 21.14.12 3. #67298 Pin pip 26.2.2 and uv 0.13.4 in Windows/macOS wheel builds 4. #67305 Raise certifi floors to 2026.10.19 5. #67304 Bump aiohttp to 3.14.4 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5) 6. #67350 Pin conda certifi and pip on every Python ## How the conflicts were resolved The conflicts are in lock files and come from 2.59 being behind master: - **Lock files that only exist on master** (`windows-tests-torch-ci`, `docstring_examples*`, `ray-torch-cu128_base_py3.11`): left out. `windows-tests-torch27-ci_depset_py3.10.lock` is the 2.59 name for `windows-tests-torch-ci`, so it got the same certifi, virtualenv-set and aiohttp/yarl bumps. - **#67301**: each of the 78 conflicting lock-file sections touches only the packages the PR bumps (virtualenv, packaging, typing-extensions, distlib, python-discovery, plus langchain-core in the ray-llm testdeps). Took the incoming side for all of them. - **`ray-torch-cu128_base_py3.14.lock` and `requirements_compiled_py3.14.txt`**: laid out differently on 2.59, so they keep the 2.59 content with only the bumped packages' version and hash lines replaced. Hashes checked against PyPI. - **`security-requirements.txt`**: resolved for the pick order. The end state matches master. After all six commits, `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile` are identical to master. These files stay on old pins because master doesn't update them either: `ray_img_py39.lock`, `docbuild_depset_py3.11.lock`, `release/requirements_py310.txt`, `requirements_ml_byod_3.10.txt`, and `large_image_embedding_py3.10.lock` (test deleted on master). 🤖 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]>
elliot-barn
added a commit
that referenced
this pull request
Nov 10, 2026
…ity fixes (#67962) ## Why This brings the eMudhra intermediate CA compromise fixes and the aiohttp CVE fixes that shipped in 2.59.1, plus the Brotli CVE-2026-111497 fixes from master, to the 2.58 line as the 2.58.2 patch release. ## Change It cherry-picks the 2.59.1 combined pick #67487 (`fed97328bf`), which contains: - #67295 / #67350: pip 26.2.2, conda and site-packages certifi 2026.10.19, and uv 0.13.4 in the Docker images - #67301: virtualenv 21.14.12 (bundles pip 26.2.2 for runtime_env virtualenvs) - #67298: pip 26.2.2 and uv 0.13.4 in the Windows and macOS wheel builds - #67305: certifi>=2026.10.19 floors - #67304: aiohttp 3.14.4 / yarl 1.25.1 (CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5) Brotli (CVE-2026-111497), picked from master: - #67596: conda `brotli-python>=1.2.1` in base-deps and base-slim (PyPI `Brotli==1.2.1` on py3.10, where conda-forge has no 1.2.1 build). This is the change that fixes the published images. - #67789: brotli 1.2.1 in the compiled requirements and locks. The pick dropped 12 master-only locks (ray-torch py3.11/cu133, torch BYOD locks) and resolved `ray-torch-cu128_base_py3.14.lock` to the 2.58 side. - Follow-up commit: brotli 1.2.1 spliced into the two 2.58 locks #67789 didn't reach (`ray-torch-cu128_base_py3.14.lock`, `large_image_embedding_py3.10.lock`). Nothing constrains brotli in those locks, so raydepsets would otherwise keep 1.2.0 / 1.1.0. Conflicts in the eMudhra pick: only `docker/base-deps/Dockerfile` and `docker/base-slim/Dockerfile`, where 2.58 installs uv from the unversioned `install.sh`. Both are resolved to the pinned `uv/0.13.4/install.sh` installer, the same as 2.59.1. The branch's base commit is the 2.58.2 version bump (`e5f5cec299`). The branch itself was cut from the `releases/2.58.1` tip `c443f1f1f4`. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` reports "Lock files are up to date", both after the eMudhra pick and again after the brotli commits. A full `build --all-configs` produces no changes. - After the brotli commits, no lock on the branch pins brotli below 1.2.1, except the unreferenced `requirements_ml_byod_3.10.txt` (same on master). The picked locks match what 2.58.2's inputs resolve to, so no separate lock regeneration was needed. - The changed pins in the locks and compiled requirements are aiohttp, yarl, certifi, virtualenv and virtualenv's dependency bumps (packaging, distlib, python-discovery, typing-extensions). Small filelock/platformdirs/langchain-core moves are included, and `--check` confirms them. - I scanned the tree after the pick. The only old pip, certifi or uv pins left are in CI-only images and scripts, plus the docs pip-freeze file that the release docs step regenerates. That matches what 2.59.1 shipped with. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Ronaldo Saheki <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ronaldo <[email protected]>
This was referenced Nov 10, 2026
elliot-barn
added a commit
that referenced
this pull request
Nov 10, 2026
…generate compiled Addresses review on #68040: - Unconstrained locks (TPU base deps, ray-llm testdeps, datatfds, llm_batch, multimodal byod py3.10) had floated to the newest releases when re-resolved. Set the #67301/#67295/#67304 package set to the versions from releases/2.58.2: virtualenv 21.14.12, distlib 0.4.3, filelock 3.29.0, platformdirs 4.9.6, python-discovery 1.6.1, typing-extensions 4.16.0, certifi 2026.10.19, aiohttp 3.14.4. large_image_embedding (stale on 2.58.2) follows its sibling locks. - certifi 2026.10.19 in ray_img_py39.lock (unused but shipped, as on 2.58.2/2.59.1/master), ci_windows_depset.lock and docbuild. - requirements_compiled.txt regenerated with ci/ci.sh compile_pip_dependencies (py3.11); only the # via lines change. - raydepsets build --all-configs, then --check: up to date. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 10, 2026
release/requirements_py310.txt still pins aiohttp 3.9.5 (and yarl 1.9.4), below the aiohttp>=3.14.4 floor master uses for CVE-2026-111064, CVE-2026-111066 and GHSA-2g87-pp6c-29x5 (#67304). - aiohttp 3.9.5 -> 3.14.4, yarl 1.9.4 -> 1.25.1, aiosignal 1.3.1 -> 1.4.0, and the new aiohttp deps aiohappyeyeballs 2.6.1 and propcache 0.4.1, at 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 floors, next to the existing certifi and h11 floors. //release:requirements_py310.update doesn't build on master, and the .in can't resolve on 3.10 anyway (requirements-doc.txt pins sphinx 8.2.3, python>=3.11; the .txt still has sphinx 7.3.7). So the versions come from a uv pip compile with every other pin in the .txt held fixed; only those entries are spliced in. Checked with uv pip install --dry-run --require-hashes on python 3.10 (all 221 packages, plus a full resolve). Hashes match the same versions in master's deplocks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 11, 2026
…68040) ## Description Brings the eMudhra CA compromise and aiohttp DoS fixes to `releases/2.57.2`. They come from the 2.59.1 squash `fed97328bf` (#67487: #67295, #67301, #67298, #67305, #67304, #67350), as on 2.58.2 (#67962). This is the first of two stacked PRs that replace #68013. The Brotli fixes are in the follow-up PR, which is based on this branch. ## How it was applied A direct cherry-pick of `fed97328bf` conflicts in about 110 files, nearly all locks, because 2.57 is two minors behind 2.59. So the source changes are applied by hand and the locks are regenerated: - **`docker/base-deps`, `docker/base-slim` Dockerfiles:** the same lines as `fed97328bf` adds: certifi 2026.10.19 and pip 26.2.2 via conda, uv pinned to 0.13.4, and pip from PyPI on py3.10. - **Windows and macOS wheel builds:** pip 26.2.2 and uv 0.13.4. - **`requirements.txt`, `test-requirements.txt`, `setup.py`:** aiohttp floor 3.13.3 → 3.14.4. - **`security-requirements.txt`:** adds aiohttp, certifi and virtualenv floors. - **`requirements_compiled.txt`, `requirements_compiled_py3.14.txt`:** aiohttp 3.14.4, certifi 2026.10.19, virtualenv 21.14.12 with distlib, packaging, python-discovery and typing-extensions, and yarl 1.25.1. The version and hash blocks are taken from 2.58.2. - **`requirements_compiled.txt`** regenerated with `ci/ci.sh compile_pip_dependencies` (py3.11), so the `# via` lines match. No pins move. - **Locks:** regenerated with `raydepsets build --all-configs`. Some locks aren't constrained by the compiled files: TPU base deps, ray-llm testdeps, docbuild, datatfds, and the multimodal and llm_batch release locks. In those, the bumped packages are set to the exact versions from `releases/2.58.2` (virtualenv 21.14.12, distlib 0.4.3, filelock 3.29.0, platformdirs 4.9.6, python-discovery 1.6.1, typing-extensions 4.16.0, certifi 2026.10.19, aiohttp 3.14.4) before the regen, so they match the source PRs instead of floating to the newest releases. `large_image_embedding_py3.10.lock` is stale on 2.58.2, so it follows its sibling multimodal locks. - **`ray_img_py39.lock`:** certifi 2026.10.19, as on 2.58.2, 2.59.1 and master. Nothing on 2.57.x builds or reads this lock (`#59484` removed py3.9 and `#59080` re-added the file by accident), but it ships in the tree. **Not ported:** 2.59's pinned `RUNTIME_ENV_AGENT_PIP_PACKAGES` in `setup.py`. On 2.57 the runtime env agent installs `aiohttp` unpinned. **Left on old pins, same as 2.58.2 and master:** aiohttp, virtualenv and yarl in `ray_img_py39.lock`, aiohttp in `ci_windows_depset.lock`, `requirements_ml_byod_3.10.txt`, aiohttp in `release/requirements_py310.txt`, and the doc pip-freeze snapshots. ## Related issues Related to #67487 (2.59.1) and #67962 (2.58.2). Together with the Brotli PR, this supersedes #68013. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` passed: "Lock files are up to date." - `ci/ci.sh compile_pip_dependencies` (py3.11): only `# via` lines change. - Every bumped package compared with `releases/2.58.2`: versions and hashes match, except the intentionally updated `large_image_embedding`. - No brotli line changes compared with `releases/2.57.2`. 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]>
elliot-barn
added a commit
that referenced
this pull request
Nov 19, 2026
release/requirements_py310.txt still pins aiohttp 3.9.5 (and yarl 1.9.4), below the aiohttp>=3.14.4 floor master uses for CVE-2026-111064, CVE-2026-111066 and GHSA-2g87-pp6c-29x5 (#67304). - aiohttp 3.9.5 -> 3.14.4, yarl 1.9.4 -> 1.25.1, aiosignal 1.3.1 -> 1.4.0, and the new aiohttp deps aiohappyeyeballs 2.6.1 and propcache 0.4.1, at 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 floors, next to the existing certifi and h11 floors. //release:requirements_py310.update doesn't build on master, and the .in can't resolve on 3.10 anyway (requirements-doc.txt pins sphinx 8.2.3, python>=3.11; the .txt still has sphinx 7.3.7). So the versions come from a uv pip compile with every other pin in the .txt held fixed; only those entries are spliced in. Checked with uv pip install --dry-run --require-hashes on python 3.10 (all 221 packages, plus a full resolve). Hashes match the same versions in master's deplocks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 20, 2026
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #67302
Why
Three high-severity advisories against aiohttp, all fixed in 3.14.4 (verified in the GitHub Advisory Database):
Ray runs aiohttp servers in two places, so the server-side DoS issues apply directly:
python/ray/_private/runtime_env/agent/main.py,web.Application), from the copy vendored into the wheel viaRUNTIME_ENV_AGENT_PIP_PACKAGES(aiohttp==3.14.3). This is what [Core] Bundled runtime_env agent aiohttp 3.14.3 flagged by CVE-2026-111064 / CVE-2026-111066 / GHSA-2g87-pp6c-29x5; please bump to >=3.14.4 #67302 reports; scanners flag its dist-info regardless of site-packages and it can't be overridden downstream.requirements_compiled.txtpins 3.14.3, so every image ships it, and the>= 3.14.1floor inrequirements.txt/ray[default]still allows affected versions for users.What
Same shape as #64056:
python/setup.py: bundledaiohttp==3.14.4;ray[default]flooraiohttp >= 3.14.4.python/requirements.txt,python/requirements/test-requirements.txt:aiohttp>=3.14.4.ci/build/bundled_dependency_versions_test.py: expectsaiohttp==3.14.4(passes locally).python/requirements/security-requirements.txt: addsaiohttp>=3.14.4, so a futureci/ci.sh compile_pip_dependencies/compile_pip_dependencies_py314run (both take this file as an input) can't resolve an affected aiohttp. aiohttp's# viain 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 [deps] Raise certifi floors to 2026.10.19 everywhere #67305 (certifi) and [deps] Bump virtualenv to 21.14.12 for eMudhra CA compromise #67301 (virtualenv); whichever merges later needs a trivial rebase.requirements_compiled.txt/requirements_compiled_py3.14.txtand all raydepsets locks: aiohttp 3.14.4, yarl 1.23.0 → 1.25.1 (aiohttp 3.14.4 requiresyarl>=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 inray_img_py312.lock).Checks:
uv pip compileof both compiled files with only these two pins changed resolves on py3.11 / py3.14 with no other version moving.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, andfrom aiohttp import webimports 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
multidictcap 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-urlencodedposts with more than 1000 fields now get413by default (client_max_fieldsonweb.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.0also pins 3.14.3; a cherry-pick is a separate decision.🤖 Generated with Claude Code