You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address Dependabot alerts for mlflow, transformers, setuptools (#9032)
## Summary
Closes the open Dependabot alerts for `mlflow`, `transformers`, and
`setuptools`, and migrates MONAI's MLflow integration off the deprecated
filesystem (file store) backend onto the recommended SQLite backend.
### Fixed
| Package | Change |
|---|---|
| `mlflow` | Bumped floor to `>=3.15.2`, closing the 2.x/early-3.x CVEs
and the unauthenticated webhook SSRF (CVE-2026-64849, fixed in 3.15.0).
Since mlflow>=3.13 hard-errors on the filesystem tracking backend,
`MLFlowHandler` now defaults to a local SQLite backend
(`sqlite:///<cwd>/mlruns.db`, artifacts under `<cwd>/mlruns`) and
rejects explicit local-path / `file://` tracking URIs with an actionable
error. Adds `monai.utils.path_to_sqlite_uri`, an `artifact_location`
argument, and SQLite engine disposal on `close()`. |
| `transformers` | Bumped floor to `>=5.5.0`, closing two HIGH severity
CVEs. `MultiModal` now builds a real `transformers.BertConfig` with
`_attn_implementation="eager"` for transformers>=4.48's attention
dispatch. |
| `setuptools` | Bumped the build-system floor to `>=78.1.1`, closing
one HIGH severity CVE. The old `<=79.0.1` cap (#8439) is no longer
needed since the legacy `fetch_build_eggs` CLI usage is gone from
`setup.py`. |
This PR supersedes #8894 (the standalone SQLite migration), which I have
proposed closing.
### Test plan
- `tests/handlers/test_handler_mlflow.py` — SQLite default, artifact
co-location, file-store rejection, remote URI, and a full run flow.
- `tests/fl/monai_algo/test_fl_monai_algo.py` and
`tests/integration/test_integration_bundle_run.py` — updated to SQLite
tracking URIs.
- `tests/networks/nets/test_transchex.py` — passes against transformers
4.36-4.40 and 5.5+.
- `tests/utils/misc/test_monai_utils_misc.py::TestPathToSqliteUri` —
SQLite URI construction and escaping.
### Please re-verify before merging
The `transformers>=5.5.0` bump: the original `<5.0` cap (#8912) cited
`torch.float8_e8m0fnu` missing from the NGC Docker image's PyTorch 2.7
build. This was not reproducible against PyPI `torch>=2.8.0`, but please
re-run the Docker/tutorial CI against the current NGC base image.
---------
Signed-off-by: R. Garcia-Dias <rafaelagd@gmail.com>
0 commit comments