Repository navigation
[cherry-pick][2.60.1][deps] Bump brotli to 1.2.1 for CVE-2026-111497 (#67789) - #67998
Merged
sai-miduthuri merged 1 commit intoNov 10, 2026
Merged
Conversation
Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder: CVE-2026-111497 / [GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35). It's fixed in 1.2.1. Ray gets `brotli` transitively through gradio, and it's pinned in the compiled requirements and in image/CI/release locks. - `python/requirements_compiled.txt` and `python/requirements_compiled_py3.14.txt`: `brotli` 1.2.0 → 1.2.1. - `python/requirements/security-requirements.txt`: adds `brotli>=1.2.1`. Both `ci/ci.sh compile_pip_dependencies` runs use this file as input, so a future recompile can't resolve an affected brotli. In both compiled files, brotli's `# via` now also lists `-r python/requirements/security-requirements.txt`. - All deplocks are regenerated with `bazel run //ci/raydepsets:raydepsets -- build --all-configs`: 36 locks move from 1.2.0 and 4 from 1.1.0. - The ray-llm base-extra-testdeps locks (py3.11/py3.12) and the four py3.10 multimodal release locks aren't constrained by the compiled files. They were upgraded with `--upgrade-package brotli`, then re-run through raydepsets. - Brotli is the only package that changes. No index URLs were added. - `release/ray_release/byod/requirements_ml_byod_3.10.txt` still has 1.1.0. Nothing in the repo references it. - `brotlicffi` isn't used. - Node.js versions used to build the dashboard (14/18/20/22.4.1) are build-time only and will be handled in a follow-up. N/A - [x] I've signed off every commit (`git commit -s`) - [ ] CI 🤖 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]> (cherry picked from commit 2f5e30a) Signed-off-by: Sai Miduthuri <[email protected]>
Contributor
|
Note The number of changes in this pull request is too large for Gemini Code Assist to generate a review. |
elliot-barn
approved these changes
Nov 10, 2026
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
… base-deps and base-slim (CVE-2026-111497) (#67596) (#67997) ## Description Cherry-pick of #67596 (master commit ed39c78) onto `releases/2.60.1`. **Top of a 2-PR stack on `releases/2.60.1`, above #67998 (the #67789 pick).** Merge the stack with `gh stack merge 67997`, which lands #67998 first. This PR needs #67998's lock files. Several images built on these bases install locks with pip: the py3.10 `ray`, `ray-gpu` and `ray-ml` test and release images, and `ray-llm` on 3.11 and 3.12. Without #67998, those locks still pin `brotli==1.2.0`. Installing them downgrades the 1.2.1 this PR puts in the base image. On master, #67789 also merged before #67596. CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)) is an out-of-bounds write in the Brotli decoder, fixed in 1.2.1, and it is in CISA KEV. The Miniforge installer used by `docker/base-deps` and `docker/base-slim` ships `brotli-python` 1.1.0 in its base environment, and no pip lock manages it. So every image built on these bases (`ray`, `ray-ml`, `ray-llm`) carries the vulnerable decoder. #67596 does the following: - On Python 3.11 and later, it adds `brotli-python>=1.2.1` to the existing `conda install`. - On Python 3.10, where conda-forge has no 1.2.1 build, it removes the conda package and installs `Brotli==1.2.1` from PyPI. The #67789 pick, #67998, covers the pip-side brotli pins in the compiled requirements and lock files. ## Related issues Related to #67596. Depends on #67998, the #67789 pick. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information ### Cherry-pick details Applied cleanly with `git cherry-pick -x`. It has the same 2 files, +20/-2, and the same `git patch-id --stable` as the master commit. Rebasing it onto #67998 changed neither of those. No prerequisite commits are missing. Three master commits touched these Dockerfiles between the branch cut and #67596: #67256, #67295 and #67350. This branch already has them through the picks #67320, #67322 and #67352. After the pick, both Dockerfiles are identical to master at ed39c78. Not a duplicate: this branch doesn't contain #67596, and no PR against `releases/2.60.1` references it. #67962 picks the same commit onto `releases/2.58.2`. ### Testing | Command | Result | |---|---| | `pre-commit run --files docker/base-deps/Dockerfile docker/base-slim/Dockerfile` | Passed | | With `Brotli==1.2.1` installed, `pip install -r` a file pinning `brotli==1.2.0` | Uninstalls 1.2.1 and installs 1.2.0, which is why this PR is stacked on #67998 | I didn't build the images locally. Both Dockerfiles are now byte-identical to the ones #67596 built and checked on master, for Python 3.10 to 3.14 on amd64 and arm64. CI builds the images on this PR. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ronaldo Saheki <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Ronaldo <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
…67789) (#68027) ## Description Cherry-pick of #67789 (master commit 2f5e30a) onto `releases/2.59.2`. **Bottom of a 3-PR stack on `releases/2.59.2`:** this PR, then #68035 (the brotli bump for the `large_image_embedding` release lock), then #68028 (the #67596 pick). Merge the stack with `gh stack merge 68028`, which lands all three in order. Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder, CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)), fixed in 1.2.1. Ray gets `brotli` transitively through gradio, and it's pinned in the compiled requirements and in the image, CI and release locks. #67789 does the following: - Adds `brotli>=1.2.1` to `security-requirements.txt`. - Moves `brotli` to 1.2.1 in `requirements_compiled.txt` and `requirements_compiled_py3.14.txt`. - Moves the locks to 1.2.1. The #67596 pick, #68028, fixes the conda copy in the base images. It's stacked above this PR because images built on those bases install these locks, and with the old pins pip would downgrade brotli to 1.2.0. ## Related issues Related to #67789. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. The same pick for 2.60.1 is #67998. ## Additional information ### Cherry-pick details Applied with `git cherry-pick -x`. Of #67789's 41 files: - **29 applied.** Their added and removed lines are identical to master's. - **12 dropped.** These locks don't exist on this branch, because master added them after the 2.59 cut: - `ray-torch-cu128_base_py3.11.lock` (#65774), `ray-torch-cu133_base_py3.11.lock` and `ray-torch-cu133_base_py3.14.lock`; - the nine `release/ray_release/byod/torch_cu128_*_py3.11.lock` files. - **`ray-torch-cu128_base_py3.14.lock` conflicted**, because it differs from master in other packages. I took this branch's version and replaced brotli's version and hash lines with #67789's 1.2.1 entry, keeping the branch's `# via` line. Its added and removed lines are now identical to master's. - Git's rename detection paired master's `ray-torch-cu128_base_py3.11.lock` with this branch's `windows-tests-torch27-ci_depset_py3.10.lock`. That file has no brotli pin, so it's unchanged. After the pick, every brotli pin in the compiled requirements and image and CI locks is 1.2.1, with two exceptions, both still at 1.1.0: - `release/ray_release/byod/requirements_ml_byod_3.10.txt`. Nothing references it, and it's the same on master. - `release/ray_release/byod/large_image_embedding_py3.10.lock`, for the nightly `large_image_embedding` release test. Master removed that test and its lock in #65819, so #67789 doesn't cover it. `raydepsets` leaves the pin as is, because nothing in that depset's inputs requires a newer brotli. #68035, the next PR in this stack, bumps it to 1.2.1. Not a duplicate: this branch doesn't contain #67789, and no PR against `releases/2.59.2` references it. #67998 picks the same commit onto `releases/2.60.1`. ### Testing | Command | Result | |---|---| | `pre-commit run --files <the 29 changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs` | Succeeded with no changes to the tree | 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]>
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.
Description
Cherry-pick of #67789 (master commit 2f5e30a) onto
releases/2.60.1.Bottom of a 2-PR stack on
releases/2.60.1, under #67997 (the #67596 pick). Merge the stack withgh stack merge 67997, which lands this PR first.Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder, CVE-2026-111497 (GHSA-9v8h-qqgm-4m35), fixed in 1.2.1. Ray gets
brotlitransitively through gradio, and it's pinned in the compiled requirements and in the image, CI and release locks.#67789 does the following:
brotli>=1.2.1tosecurity-requirements.txt.brotlito 1.2.1 inrequirements_compiled.txtandrequirements_compiled_py3.14.txt.The #67596 pick, #67997, fixes the conda copy in the base images. It's stacked on this PR because images built on those bases install these locks, and with the old pins pip would downgrade brotli to 1.2.0.
Related issues
Related to #67789. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497.
Additional information
Cherry-pick details
Applied with
git cherry-pick -x. Of #67789's 41 files:ray-torch-cu133_base_py3.11.lockandray-torch-cu133_base_py3.14.lock;release/ray_release/byod/torch_cu128_*_py3.11.lockfiles.ray-torch-cu128_base_py3.14.lock. It conflicted because it differs from master in other packages. I took this branch's version and replaced brotli's version and hash lines with [deps] Bump brotli to 1.2.1 for CVE-2026-111497 #67789's 1.2.1 entry, keeping the branch's# vialine. Its added and removed lines are now identical to master's: brotli 1.2.0 → 1.2.1, -100/+143 hashes.After the pick, every brotli pin in the compiled requirements and lock files is 1.2.1. The exception is
release/ray_release/byod/requirements_ml_byod_3.10.txt, which nothing references; it is still 1.1.0, the same as on master.#67979 (open on master) regenerates two ray-llm locks whose
# viaannotation master's #67789 left stale. On this branch,raydepsets build --all-configsproduces no changes after the pick, so that follow-up isn't needed here.Not a duplicate: this branch doesn't contain #67789, and no PR against
releases/2.60.1references it. #67962 picks the same commit ontoreleases/2.58.2.Testing
pre-commit run --files <the 30 changed files>bazel run //ci/raydepsets:raydepsets -- build --all-configsbazel run //ci/raydepsets:raydepsets -- build --all-configs --checkAI assistance was used to prepare this cherry-pick.
🤖 Generated with Claude Code