Skip to content

[ci] Pin pip 26.2.2 and uv 0.13.4 in Windows/macOS wheel builds for eMudhra CA compromise - #67298

Merged
elliot-barn merged 2 commits into
masterfrom
elliot-barn/emudhra-win-mac-wheels
Oct 23, 2026
Merged

elliot-barn merged 2 commits into
masterfrom
elliot-barn/emudhra-win-mac-wheels

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Why

Follow-up to #67295 (Linux images) for the eMudhra intermediate CA compromise (https://emudhra.we-have-a-problem.com/).

The Windows and macOS wheel builds run pip 25.2, which trusts its own vendored certifi (2025.7.14, still includes emSign ECC Root CA - G3) as well as the system store. python/setup.py uses that pip to download the vendored thirdparty packages (psutil, colorama, aiohttp, idna) without hash checking, so build-time downloads should not trust the compromised intermediates.

The shipped wheels themselves need no change: they vendor no pip/certifi/CA bundle, requests and virtualenv are not capped, and Ray's gRPC TLS uses the user's RAY_TLS_CA_CERT.

What

File Change
python/build-wheel-windows.sh uv run --with pip==25.2 → pip==26.2.2
ci/ray_ci/windows/build_base.sh uv 0.9.22 → 0.13.4 (build_base.sh already updates conda ca-certificates/certifi)
python/build-wheel-macos.sh conda pip=26.2.2 on 3.11–3.14; 3.10 keeps conda pip=25.2 and upgrades to 26.2.2 from PyPI
ci/build/test-macos-wheels.sh same split on the arm64 conda path (it already runs pip install -U pip afterwards)

conda-forge pip 26.2.2 builds require python>=3.11, but the PyPI release supports 3.10. Dry-run solves (conda create --dry-run --platform osx-arm64|osx-64) succeed for python 3.10 + pip 25.2 and 3.11–3.14 + pip 26.2.2 (resolving python 3.13.17 / 3.14.9); python 3.10 + pip 26.2.2 fails.

Not covered

🤖 Generated with Claude Code

…Mudhra CA compromise

pip 25.2 vendors a certifi that still trusts the compromised eMudhra
intermediates, and setup.py uses it to download the vendored thirdparty
packages without hash checking.

- Windows wheel build: uv run --with pip==26.2.2.
- Windows CI base: uv 0.9.22 -> 0.13.4.
- macOS wheel build and wheel test: conda pip=26.2.2 for python 3.11+.
  conda-forge pip 26.2.2 requires python>=3.11, so 3.10 installs
  conda's pip 25.2 and upgrades to 26.2.2 from PyPI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn marked this pull request as ready for review October 22, 2026 20:36
@elliot-barn
elliot-barn requested review from a team as code owners October 22, 2026 20:36

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades pip to version 26.2.2 across macOS and Windows build environments to address the eMudhra CA security issue, and updates uv to 0.13.4 on Windows. For Python 3.10 on macOS, the changes attempt to install pip 25.2 first and then upgrade to 26.2.2. However, the reviewer identified a critical security vulnerability in this workaround: using the compromised pip 25.2 to download the secure pip 26.2.2 exposes the process to MITM attacks. The reviewer recommends using curl to download get-pip.py and bootstrap pip 26.2.2 securely, while also ensuring the correct Python executable path is used in the CI environment.

Comment on lines +71 to 79
if [[ "${PY_MM}" == "3.10" ]]; then
conda install -y python="${PY_MM}" pip=25.2
python -m pip install pip==26.2.2
else
conda install -y python="${PY_MM}" pip=26.2.2
fi

PYTHON_EXE="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/python"
PIP_CMD="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/pip"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

Security & Correctness Issue: Bootstrapping pip via Compromised Trust Store

  1. Security Loophole: The purpose of this PR is to avoid trusting the compromised eMudhra CA. However, by installing pip=25.2 first and then running python -m pip install pip==26.2.2, the download of the secure pip 26.2.2 package is performed by pip 25.2, which still trusts the compromised CA. A MITM attacker could exploit this during the bootstrap step to serve a malicious pip package.
  2. Correctness: Using the bare python command on line 73 is unreliable in non-interactive shells where conda activate might not have fully updated the PATH. Since PYTHON_EXE is explicitly defined right after this block to ensure the correct Miniforge Python environment is used, we should define it beforehand.
  3. Efficiency: We can avoid installing pip 25.2 via conda altogether.

Solution

Use curl (which uses the secure macOS system trust store) to download get-pip.py and bootstrap pip 26.2.2 securely using the explicit PYTHON_EXE path.

Suggested change
if [[ "${PY_MM}" == "3.10" ]]; then
conda install -y python="${PY_MM}" pip=25.2
python -m pip install pip==26.2.2
else
conda install -y python="${PY_MM}" pip=26.2.2
fi
PYTHON_EXE="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/python"
PIP_CMD="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/pip"
PYTHON_EXE="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/python"
PIP_CMD="/opt/homebrew/opt/miniforge/envs/${CONDA_ENV_NAME}/bin/pip"
if [[ "${PY_MM}" == "3.10" ]]; then
conda install -y python="${PY_MM}"
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
"$PYTHON_EXE" get-pip.py "pip==26.2.2"
rm get-pip.py
else
conda install -y python="${PY_MM}" pip=26.2.2
fi

Comment on lines +61 to +66
if [[ "$PY_MM" == "3.10" ]]; then
conda install -y python="$PY_MM" pip=25.2
python -m pip install pip==26.2.2
else
conda install -y python="$PY_MM" pip=26.2.2
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

Security Issue: Bootstrapping pip via Compromised Trust Store

By installing pip=25.2 first and then running python -m pip install pip==26.2.2, the download of the secure pip 26.2.2 package is performed by pip 25.2, which still trusts the compromised eMudhra CA. A MITM attacker could exploit this during the bootstrap step to serve a malicious pip package.

Solution

Use curl (which uses the secure macOS system trust store) to download get-pip.py and bootstrap pip 26.2.2 securely, avoiding the installation of the compromised pip 25.2 altogether.

Suggested change
if [[ "$PY_MM" == "3.10" ]]; then
conda install -y python="$PY_MM" pip=25.2
python -m pip install pip==26.2.2
else
conda install -y python="$PY_MM" pip=26.2.2
fi
if [[ "$PY_MM" == "3.10" ]]; then
conda install -y python="$PY_MM"
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py "pip==26.2.2"
rm get-pip.py
else
conda install -y python="$PY_MM" pip=26.2.2
fi

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f2132d6. Configure here.

# python>=3.11, so 3.10 upgrades from PyPI instead.
if [[ "$PY_MM" == "3.10" ]]; then
conda install -y python="$PY_MM" pip=25.2
python -m pip install pip==26.2.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insecure pip bootstrap on Python 3.10

Medium Severity

The Python 3.10 path upgrades to pip 26.2.2 through an unhashed PyPI install driven by pip 25.2, whose vendored certifi still trusts the compromised eMudhra intermediates. That bootstrap is the same MITM-able download this change is meant to stop, so a swapped pip can still vendor untrusted third-party code into the wheel.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f2132d6. Configure here.

@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Oct 22, 2026
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core devprod labels Oct 23, 2026
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]>
@elliot-barn
elliot-barn merged commit 1ac3334 into master Oct 23, 2026
6 of 7 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/emudhra-win-mac-wheels branch October 23, 2026 18:52
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
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]>
elliot-barn added a commit that referenced this pull request Oct 26, 2026
…OS wheel builds for eMudhra CA compromise (#67298) (#67346)

Cherry-pick of #67298 (master commit
1ac3334) onto `releases/2.60.0`.

## Why

This is a follow-up to #67295 for the eMudhra intermediate CA
compromise, covering the Windows and macOS wheel builds. Those builds
run pip 25.2, which trusts its own vendored `certifi` (2025.7.14, which
still includes `emSign ECC Root CA - G3`). `python/setup.py` uses that
pip to download the vendored third-party packages without hash checks.

#67298 changes four scripts:

- `python/build-wheel-windows.sh`: moves to pip 26.2.2.
- `ci/ray_ci/windows/build_base.sh`: moves to uv 0.13.4.
- `python/build-wheel-macos.sh` and `ci/build/test-macos-wheels.sh`:
install pip 26.2.2. Python 3.10 keeps conda's pip 25.2 and upgrades to
26.2.2 from PyPI, because conda-forge's pip 26.2.2 requires Python 3.11
or newer.

## Cherry-pick details

Applied cleanly with `git cherry-pick -x`. The diff is byte-identical to
the master commit, index lines included: 4 files, 18 insertions and 4
deletions.

No prerequisite commits are missing. The 4 files on this branch were
identical to #67298's parent, so after the pick they match master at
1ac3334. This PR is independent of the eMudhra stack (#67320 to
#67352), so it's based directly on `releases/2.60.0`.

Not a duplicate: this branch doesn't contain #67298, and no PR against
`releases/2.60.0` references it.

## Testing

| Command | Result |
|---|---|
| `pre-commit run --files <the 4 changed files>` | Passed (shellcheck,
trailing whitespace, end of file) |

I didn't run the Windows or macOS wheel builds locally. These scripts
run in CI's Windows and macOS wheel 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: Sai Miduthuri <[email protected]>
Co-authored-by: Elliot Barnwell <[email protected]>
Co-authored-by: Claude Opus 5.5 <[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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants