Repository navigation
build: bump orjson, python-multipart, pyarrow, anyio, and remove ray's Java worker jar for CVE remediation - #3779
Merged
Conversation
- orjson >=3.11.6 (resolves to 3.12.0): fixes unbounded recursion on deeply nested JSON documents (GHSA-hx9q-6w63-j58v) - python-multipart >=0.0.27 (resolves to 0.0.32): fixes DoS via unbounded multipart part headers (GHSA-pp6c-gr5w-3c5g) - uv.lock regenerated Signed-off-by: Kajal Jain <[email protected]>
Contributor
Author
|
/ok to test 54b4f58 |
- pyarrow >=15.0.2 -> >=25.0.1 (job_bench): mlflow-skinny's actual constraint is pyarrow>=23.0.1 with no upper bound; the old ">=15.0.2, mlflow caps <25" comment was stale, root already resolves to pyarrow==25.0.0 today. - anyio >=4.15.1 pinned at the root (previously only pinned in miniswe_sandboxed_agent's own requirements.txt). mcp is a core nemo-gym dependency, so its anyio>=4.10.0 floor was resolving to the CVE-affected 4.10.0 in the main image build, not just that one per-server venv. - uv.lock regenerated Validated locally: job_bench (36 tests) and miniswe_sandboxed_agent both resolve and import cleanly with the new pins. Signed-off-by: Kajal Jain <[email protected]>
2 tasks done
Contributor
Author
|
/ok to test 7b7c3eb |
Contributor
Author
|
/ok to test 2c42255 |
ananthsub
previously approved these changes
Sep 29, 2026
ray_dist.jar (Ray's Java cross-language worker) bundles an outdated httpcore5 with a known DoS CVE (GHSA-hf6x-8p5f-cgmf). No released ray version fixes this yet (the pin exists on ray's own master branch but hasn't shipped). Gym never uses Ray's Java worker, so remove the jar from installed venvs at build time instead of waiting on upstream. Scoped to site-packages paths only, not uv's raw cache directories: deleting a file from the cache that uv's hardlink-based install expects to still be present could break creating a fresh venv later for a resources server that wasn't prefetched into this image. Validated locally: with the jar deleted, ray.init(), remote tasks, actors, and ray.serve (including its HAProxy-based ingress) all work identically to the baseline with the jar present. Signed-off-by: Kajal Jain <[email protected]>
Contributor
Author
|
/ok to test 3db8fee |
chtruong814
approved these changes
Sep 29, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36625019939 |
This branch was previously deployed
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.
What does this PR do?
Bumps four packages and removes a bundled vulnerable jar, all flagged by container vuln scans:
orjson>=3.11.6 (resolves to 3.12.0): unbounded recursion on deeply nested JSON documentspython-multipart>=0.0.27 (resolves to 0.0.32): DoS via unbounded multipart part headerspyarrow>=15.0.2 -> >=25.0.1 (job_bench): mlflow-skinny's actual constraint ispyarrow>=23.0.1with no upper bound; the old "stay below mlflow's <25 cap" comment was staleanyio>=4.15.1 pinned at the root pyproject.toml:mcpis a core nemo-gym dependency and its ownanyio>=4.10.0floor was resolving to the CVE-affected 4.10.0 version in the main image buildray_dist.jar(Ray's Java cross-language worker) from installed venvs at build time. It bundles an outdatedhttpcore5with a known DoS CVE (GHSA-hf6x-8p5f-cgmf); no released ray version fixes it yet. Gym never uses Ray's Java worker, so the jar is dead weight — removing it doesn't affectray.init(), remote tasks, actors, orray.serveuv.lockregeneratedValidation
ruff check ./ruff format --check .: passuv lock: resolves cleanlyjob_bench's venv locally:pyarrow==25.0.1resolved, all 36 tests passminiswe_sandboxed_agent's venv locally:anyio==4.15.1resolved, imports cleanlyray.init(), remote functions, actors, andray.serve(including its HAProxy-based ingress) all work identically with the jar deletedChecklist