Skip to content

[cherry-pick][2.58.2] idna 3.15+ in remaining locks and aiohttp/idna in release tooling - #68051

Merged
elliot-barn merged 2 commits into
releases/2.58.2from
elliot-barn/cherry-pick-2.58.2-idna-aiohttp
Nov 11, 2026
Merged

elliot-barn merged 2 commits into
releases/2.58.2from
elliot-barn/cherry-pick-2.58.2-idna-aiohttp

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

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 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

elliot-barn and others added 2 commits November 11, 2026 00:22
)

2.58.2 has the idna>=3.15 floor from #64056, but locks not constrained by
requirements_compiled.txt kept vulnerable idna. These get idna 3.18
(the compiled pin), as on releases/2.57.2 (#68047) and master (#68048):
- TPU base deps py3.10-3.13 (3.11) and py3.14 (3.13); these feed the TPU
  images
- ray-llm testdeps py3.11/3.12 (3.13), datatfds_py3.12 (3.11), llm_batch
  (3.11)
- multimodal byod py3.10 release locks (3.7)
- ray_img_py39.lock and requirements_ml_byod_3.10.txt (unreferenced; the
  .txt gets only its version and hash lines changed)

large_image_embedding_py3.10.lock was also still on certifi 2025.1.31 and
virtualenv 20.33.1. It now uses the eMudhra pins of its sibling locks:
certifi 2026.10.19, 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,
packaging 26.3 and aiohttp 3.14.4, matching releases/2.57.2.

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]>
…iohttp>=3.14.4, idna>=3.15

release/requirements_py310.txt (the py_deps_py310 bazel lock and the
release-test launcher env) pinned aiohttp 3.9.5 and idna 3.7.
requirements_py310.in gains aiohttp>=3.14.4 and idna>=3.15 floors, next to
the existing certifi and h11 floors, and 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,
idna 3.7 -> 3.20, and the new aiohappyeyeballs 2.7.1 and propcache 0.5.4.
No other pin changes.

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 bazel target can't run as-is because
release/requirements-doc.txt (a symlink to doc/requirements-doc.txt) pins
sphinx 8.2.3 (python>=3.11). For the compile, that file was replaced by
the same doc requirements at the versions already in the .txt, then
restored. Before the .in change, this procedure reproduces the existing
.txt byte for byte. Checked with uv pip install --dry-run --require-hashes
on python 3.10 (221 packages) plus a full resolve. Same change as
releases/2.57.2 #68047.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn requested a review from a team as a code owner November 11, 2026 00:23
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core release-test release test labels Nov 11, 2026
@elliot-barn
elliot-barn merged commit e9825a2 into releases/2.58.2 Nov 11, 2026
6 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/cherry-pick-2.58.2-idna-aiohttp branch November 11, 2026 02:55
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 release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant