Skip to content

[deps] Bump idna and aiohttp in files left below the security floors - #68048

Merged
elliot-barn merged 2 commits into
masterfrom
elliot-barn/idna-cve-2026-45409
Nov 20, 2026
Merged

elliot-barn merged 2 commits into
masterfrom
elliot-barn/idna-cve-2026-45409

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

@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 updates the idna dependency version to 3.18 across various lock and requirements files, including BYOD and release configurations. It also updates resolution paths for brotli to reference the security requirements file. No review comments were provided, and there is no additional feedback to offer.

@elliot-barn elliot-barn changed the title [deps] Bump idna to 3.18 in locks left below 3.15 (CVE-2026-45409) [deps] Bump idna and aiohttp in files left below the security floors Nov 10, 2026
@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 added a commit that referenced this pull request Nov 11, 2026
…in release tooling (#68051)

## Description

Closes the remaining security gaps on `releases/2.58.2` so that it
matches the 2.57.2 picks (#68040, #68041, #68047). log4j (2.25.4) and
the `security-requirements.txt` floors are already correct here.

### 1. idna 3.15+ in the remaining locks (`fdcca7fe01`)

[CVE-2026-45409 /
GHSA-65pc-fj4g-8rjx](GHSA-65pc-fj4g-8rjx)
is a medium-severity denial of service in idna before 3.15. 2.58.2 has
the `idna>=3.15` floor from #64056. But locks that aren't constrained by
`requirements_compiled.txt` kept vulnerable idna, and they now get idna
3.18, the compiled pin:

| Lock | Before |
|---|---|
| TPU base deps py3.10–3.13 / py3.14 (these feed the **TPU images**) |
3.11 / 3.13 |
| ray-llm testdeps py3.11/3.12 | 3.13 |
| `datatfds_py3.12`, `llm_batch_single_node_benchmark_py312_cu130` |
3.11 |
| multimodal byod py3.10 release locks (×5) | 3.7 |
| `ray_img_py39.lock`, `requirements_ml_byod_3.10.txt` (unreferenced) |
3.7 |

`large_image_embedding_py3.10.lock` was also still on certifi 2025.1.31
and virtualenv 20.33.1. It now uses its sibling locks' eMudhra pins
(certifi 2026.10.19, virtualenv 21.14.12 and its dependencies, aiohttp
3.14.4), the same as on 2.57.2.

### 2. aiohttp and idna in `release/requirements_py310.txt`
(`30d47f3129`)

This file is the `py_deps_py310` Bazel lock and the release-test
launcher environment. It pinned aiohttp 3.9.5 and idna 3.7.
`requirements_py310.in` gains `aiohttp>=3.14.4` and `idna>=3.15` floors,
and the `.txt` is recompiled:

| Package | Before | After |
|---|---|---|
| aiohttp | 3.9.5 | 3.14.5 |
| yarl | 1.9.4 | 1.25.1 |
| aiosignal | 1.3.1 | 1.4.0 |
| idna | 3.7 | 3.20 |
| aiohappyeyeballs, propcache | none | 2.7.1, 0.5.4 |

No other pin changes.

It's recompiled with the same tool as
`//release:requirements_py310.update`: pip-tools 6.6.0 on pip 22.0.4 and
Python 3.10, `--no-upgrade --generate-hashes`. The one workaround:
`release/requirements-doc.txt`, a symlink to `doc/requirements-doc.txt`,
pins `sphinx==8.2.3`, which needs Python ≥3.11. For the compile, that
symlink was replaced by the same doc requirements at the versions
already in the `.txt`, then restored. Before the `.in` change, this
reproduces the existing `.txt` byte for byte.

### Left as is (same on 2.57.2 and master)

- **`ci_windows_depset.lock`:** compiled for Python 3.8, where aiohttp
tops out at 3.10.11.
- **`ray_img_py39.lock`:** aiohttp stays at 3.11.16, because the Python
3.9 line tops out at 3.13.x.
- **`requirements_ml_byod_3.10.txt`:** aiohttp, brotli and yarl stay as
they are. The file is unreferenced and has no generator.
- **The doc pip-freeze snapshot:** regenerated from the image by the
release docs step.
- **The raydepsets test fixture.**

## Related issues

Related to #64056, #67962, #68047 (2.57.2) and #68048 (master).

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs`, then
`--check`: "Lock files are up to date." The locks change only idna and,
in `large_image_embedding`, the package set above.
- `release/requirements_py310.txt`: `uv pip install --dry-run
--require-hashes` on Python 3.10 covers 221 packages, and a full resolve
has no conflicts.
- A scan of every pinned file for aiohttp, certifi, brotli, idna,
virtualenv and yarl below their floors finds only the files listed under
"Left as is".

AI assistance (Claude Code) was used to prepare this change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn and others added 2 commits November 19, 2026 22:44
#64056 set idna>=3.15 and idna 3.18 in requirements_compiled.txt, but
files not constrained by the compiled file kept vulnerable pins:
- multimodal byod py3.10 release locks (audio_transcription,
  document_embedding, image_classification, video_object_detection):
  3.7
- release/requirements_py310.txt (py_deps_py310 bazel lock and the
  release-test launcher env): 3.7
- datatfds_py3.12.lock: 3.11
- requirements_ml_byod_3.10.txt (unreferenced): 3.7

All move to 3.18, the compiled pin. raydepsets build --all-configs
--check passes. The two .txt files change only their idna version and
hash lines, because //release:requirements_py310.update no longer builds
(its pip_compile.py target is gone from rules_python). Instead, checked
with uv pip install --dry-run --require-hashes on python 3.10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
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
elliot-barn force-pushed the elliot-barn/idna-cve-2026-45409 branch from eaf171a to edeca9f Compare November 19, 2026 22:49
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Nov 19, 2026
@elliot-barn
elliot-barn merged commit 4b7e4bb into master Nov 20, 2026
7 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/idna-cve-2026-45409 branch November 20, 2026 01:45
elliot-barn added a commit that referenced this pull request Nov 20, 2026
…r required (#68050)

## Description

`release/requirements_py310.txt` is the `py_deps_py310` Bazel lock and
the release-test launcher environment. It wasn't regenerated when the
docs dropped TensorFlow (#65947) and swapped sphinx plugins (#66957). It
still pins 23 packages that nothing in `requirements_py310.in` or
`requirements-doc.txt` requires anymore:

- **TensorFlow stack:** tensorflow, tf-keras, keras, tensorboard,
tensorboard-data-server, h5py, absl-py, astunparse, flatbuffers, gast,
google-pasta, libclang, ml-dtypes, namex, opt-einsum, optree, markdown,
werkzeug
- **Doc plugins:** sphinx-jsonschema, sphinx-llms-txt,
sphinxcontrib-redoc
- **Other:** pillow, wheel

This PR recompiles the file and removes them. No pin changes, and
nothing is added.

**Stacked on #68048** (idna and aiohttp security bumps), so the
recompile starts from the fixed floors. Merge #68048 first, then
retarget this PR to `master`.

### How it was recompiled

It uses the same tool and settings as
`//release:requirements_py310.update`: pip-tools 6.6.0 on pip 22.0.4 and
Python 3.10, with `--no-upgrade --generate-hashes`. The Bazel target
itself can't run on master for two reasons:

1. It doesn't build, because
`@rules_python//python/pip_install:pip_compile.py` no longer exists in
the rules_python version master uses.
2. `release/requirements-doc.txt` is a symlink to
`doc/requirements-doc.txt`, which now pins `sphinx==8.2.3` and
`sphinxcontrib-openapi==0.10.0`. Both need Python ≥3.11, so this Python
3.10 environment can't resolve them.

So during the compile, that symlink was temporarily replaced by the same
doc requirements at the versions already in the `.txt`, leaving out doc
packages the `.txt` doesn't have, and then restored. On
`releases/2.57.2`, the same procedure reproduces the existing file byte
for byte.

A longer-term fix is to drop `-r requirements-doc.txt` from this Python
3.10 environment, or move the environment to Python 3.11, and to repair
the Bazel target. I'll leave that for a follow-up.

## Related issues

Follow-up to #65947, #66957 and #68048.

## Testing

- No Bazel `ci_require`/`bk_require`/`requirement` or `@py_deps_py310_*`
reference and no import in `release/ray_release` or `ci/` uses the
removed packages.
- `uv pip install --dry-run --require-hashes` on Python 3.10 covers 198
packages, and a full resolve gives the same 198 with no conflicts.
Before this change, the full resolve needed one package the file didn't
pin.

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 go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants