Commit 6317a8c
fix: address Dependabot security alerts for mlflow, transformers, setuptools
- mlflow: bump floor to >=3.11.1 (drops the <3.0 cap), closing CVEs across
the 2.x/early-3.x line. The cap existed for a Python 3.12 packaging bug
in mlflow.utils.uv_utils that is no longer present in current releases.
mlflow>=3.13 also turns the local file-store warning into a hard error
(#8891); MLFlowHandler now sets MLFLOW_ALLOW_FILE_STORE=true by default
since it documents and relies on that local store. Documented the
side effect in the class docstring and added tests covering both the
unset-defaults-to-true and existing-value-is-preserved cases.
- transformers: bump floor to >=5.5.0 (drops the <5.0 cap), closing two
HIGH severity CVEs. The cap existed because transformers>=5.x broke
Transchex: BertConfig was previously a bare ad-hoc class missing
`_attn_implementation`, and BertLayer's forward() return type changed
from a tuple to a bare Tensor (the latter was already handled). Fixed
both in transchex.py and verified against transformers 4.36-4.40 and
5.5-5.14. The previous <5.0 cap's stated reason (torch.float8_e8m0fnu
missing from the nv25.03 Docker image's PyTorch 2.7 build) is unrelated
to transchex.py and should be re-verified against the current NGC base
image before merging, since it wasn't reproducible against a stock
PyPI torch>=2.8.0 install.
- setuptools: bump requirements-min.txt floor to >=78.1.1, closing one
HIGH severity CVE. Still capped at <=79.0.1 because setuptools>=80
breaks MONAI's own setup.py CLI usage (#8439); a MEDIUM severity CVE
fixed in 83.0.0 remains open until that's resolved. Also drop
requirements-dev.txt's separate `setuptools<71` cap, which conflicted
with that floor and broke CI dependency installation (mypy, hyena-dep,
full-dep): it was added for MetricsReloaded's legacy pkg_resources-based
setup.py, but the `monai-support` branch already has that import
commented out, and the pinned segment-anything commit never used
pkg_resources either, so the cap is no longer needed.
Verified via targeted venv testing against the actual pinned versions
(transformers==5.5.0, mlflow==3.11.1): tests/networks/nets/test_transchex.py
and tests/handlers/test_handler_mlflow.py both pass.
CodeRabbit flagged MultiModal.__init__ (transchex.py) for allegedly calling
transformers' PreTrainedModel.__init__() without a config, which 5.5.0
requires. That's a false positive: MultiModal subclasses transchex.py's own
local `BertPreTrainedModel(nn.Module)` shim, not transformers' class, so
HF's config-in-super().__init__() requirement doesn't apply. Confirmed by
running the test suite unchanged against transformers 5.5.0 (3 passed).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: R. Garcia-Dias <rafaelagd@gmail.com>1 parent ed76cd5 commit 6317a8c
6 files changed
Lines changed: 56 additions & 8 deletions
File tree
- docs
- monai
- handlers
- networks/nets
- tests/handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
109 | 134 | | |
110 | 135 | | |
111 | 136 | | |
| |||
0 commit comments