chore(deps): bump the pip group across 2 directories with 4 updates
Bumps the pip group with 3 updates in the /API directory: keras, pillow and pymongo. Bumps the pip group with 1 update in the /testing directory: pytest.
Updates keras from 2.15.0 to 3.13.2
Release notes
Sourced from keras's releases.
v3.13.2
Security Fixes & Hardening
This release introduces critical security hardening for model loading and saving, alongside improvements to the JAX backend metadata handling.
Disallow
TFSMLayerdeserialization insafe_mode(#22035)
- Previously,
TFSMLayercould load external TensorFlow SavedModels during deserialization without respecting Kerassafe_mode. This could allow the execution of attacker-controlled graphs during model invocation.TFSMLayernow enforcessafe_modeby default. Deserialization viafrom_config()will raise aValueErrorunlesssafe_mode=Falseis explicitly passed orkeras.config.enable_unsafe_deserialization()is called.Fix Denial of Service (DoS) in
KerasFileEditor(#21880)
- Introduces validation for HDF5 dataset metadata to prevent "shape bomb" attacks.
- Hardens the
.kerasfile editor against malicious metadata that could cause dimension overflows or unbounded memory allocation (unbounded numpy allocation of multi-gigabyte tensors).Block External Links in HDF5 files (#22057)
- Keras now explicitly disallows external links within HDF5 files during loading. This prevents potential security risks where a weight file could point to external system datasets.
- Includes improved verification for H5 Groups and Datasets to ensure they are local and valid.
Backend-specific Improvements (JAX)
- Set
mutable=Trueby default innnx_metadata(#22074)
- Updated the JAX backend logic to ensure that variables are treated as mutable by default in
nnx_metadata.- This makes Keras 3.13.2 compatible with Flax 0.12.3 when the Keras NNX integration is enabled.
Saving & Serialization
- Improved H5IOStore Integrity (#22057)
- Refactored
H5IOStoreandShardedH5IOStoreto remove unused, unverified methods.- Fixed key-ordering logic in sharded HDF5 stores to ensure consistent state loading across different environments.
Contributors
We would like to thank the following contributors for their security reports and code improvements:
@0xManan,@HyperPS,@hertschuh, and@divyashreepathihalli.Full Changelog: https://github.com/keras-team/keras/compare/v3.13.1...v3.13.2
v3.13.1
Bug Fixes & Improvements
- General
- Removed a persistent warning triggered during
import keraswhen using NumPy 2.0 or higher. (#21949)- Backends
- JAX: Fixed an issue where CUDNN flash attention was broken when using JAX versions greater than 0.6.2. (#21970)
- Export & Serialization
- Resolved a regression in the export pipeline that incorrectly forced batch sizes to be dynamic. The export process now correctly respects static batch sizes when defined. (#21944)
Full Changelog: https://github.com/keras-team/keras/compare/v3.13.0...v3.13.1
... (truncated)
Commits
e29d0efVersion bump and cherry picks for 3.13.2 (#22080)8914427Patch release commits for 3.13.1 (#22005)986ff97Update release version and comment orbax checkpoint (#21934)ca23fceRefactors AbsMaxQuantizer to accept axis in call (#21931)1a9893fAdds Serialization Support for QuantizationConfig based quantized models (#21...86bfab4More OpenVINO Numpy Operations (#21925)f48f480Add adaptive pooling (1D, 2D, 3D) support across JAX, NumPy, TensorFlow, and ...0771c80Fix ops.tile shape inference issue on TensorFlow backend (#21860)024c96dExtended fix OOM Issue #21634 on Keras side (#21755)71f4997Introduces QuantizationConfig for fine-grained quantization control (#21896)- Additional commits viewable in compare view
Updates pillow from 10.4.0 to 12.2.0
Release notes
Sourced from pillow's releases.
12.2.0
https://pillow.readthedocs.io/en/stable/releasenotes/12.2.0.html
Documentation
- Update 12.2.0 release notes #9522 [
@hugovk]- Add loader plugins: AMOS abk, Atari Degas, 40+ more obscure formats via Netpbm #9482 [
@bitplane]- Update Python versions #9515 [
@radarhere]- Jeffrey A. Clark -> Jeffrey 'Alex' Clark #9513 [
@aclark4life]- Add release notes for #9394, #9419 and #9456 #9467 [
@radarhere]- Add Amiga Workbench .info loader to 3rd party plugins list #9459 [
@bitplane]- Merge PFM documentation into PPM #9434 [
@radarhere]- Update macOS tested Pillow versions #9431 [
@radarhere]- Fix CVE number #9430 [
@hugovk]Dependencies
- Update xz to 5.8.3 #9523 [
@radarhere]- Update libjpeg-turbo to 3.1.4.1 #9507 [
@radarhere]- Update libpng to 1.6.56 #9499 [
@radarhere]- Update freetype to 2.14.3 #9485 [
@radarhere]- Updated libavif to 1.4.1 #9479 [
@radarhere]- Updated harfbuzz to 13.2.1 #9461 [
@radarhere]- Update Ghostscript to 10.7.0 #9469 [
@radarhere]- Update harfbuzz to 13.0.1 #9453 [
@radarhere]- Update libavif to 1.4.0 #9460 [
@radarhere]- Update freetype to 2.14.2 #9449 [
@radarhere]- Update actions/download-artifact action to v8 #9451 [@renovate[bot]]
- Updated libpng to 1.6.55 #9425 [
@radarhere]Testing
- Cleanup .spider extension in the same test where it is added #9517 [
@radarhere]- Run tests in parallel via tox for 3.5x speedup #9516 [
@hugovk]- Enable colour in CI logs #9486 [
@hugovk]- Update Ghostscript to 10.7.0 #9469 [
@radarhere]- Simplify TGA test code #9477 [
@radarhere]- Update tests to check for ValueError when encoding an empty image #9464 [
@radarhere]- Upgrade CI from
macos-15-inteltomacos-26-intel#9454 [@hugovk]- Add check-case-conflict hook #9446 [
@radarhere]- Specify platform when pulling docker image #9440 [
@radarhere]- GHA: Cache libavif and webp builds for Ubuntu #9437 [
@hugovk]- Update macOS tested Pillow versions #9431 [
@radarhere]Other changes
- Check calloc return value #9527 [
@radarhere]- Check all allocs in the Arrow tree #9488 [
@wiredfool]- Reject non-numeric elements inside list coords #9526 [
@hugovk]- Move variable declaration inside define #9525 [
@radarhere]
... (truncated)
Changelog
Sourced from pillow's changelog.
Changelog (Pillow)
11.1.0 and newer
See GitHub Releases:
11.0.0 (2024-10-15)
Update licence to MIT-CMU #8460 [hugovk]
Conditionally define ImageCms type hint to avoid requiring core #8197 [radarhere]
Support writing LONG8 offsets in AppendingTiffWriter #8417 [radarhere]
Use ImageFile.MAXBLOCK when saving TIFF images #8461 [radarhere]
Do not close provided file handles with libtiff when saving #8458 [radarhere]
Support ImageFilter.BuiltinFilter for I;16* images #8438 [radarhere]
Use ImagingCore.ptr instead of ImagingCore.id #8341 [homm, radarhere, hugovk]
Updated EPS mode when opening images without transparency #8281 [Yay295, radarhere]
Use transparency when combining P frames from APNGs #8443 [radarhere]
Support all resampling filters when resizing I;16* images #8422 [radarhere]
Free memory on early return #8413 [radarhere]
Cast int before potentially exceeding INT_MAX #8402 [radarhere]
... (truncated)
Commits
3c41c0912.2.0 version bumpcdaa29eCheck calloc return value (#9527)585b2f5Check calloc return valueecf011eCheck all allocs in the Arrow tree (#9488)cf6de8cReject non-numeric elements inside list coords (#9526)ffdcedeUpdate 12.2.0 release notes (#9522)7929d77Added security release notes (#149)c4f7aa5Added security release notes22cdb5fMove variable declaration inside define (#9525)fc15b3bResize tall images vertically first (#9524)- Additional commits viewable in compare view
Updates pymongo from 4.6.1 to 4.6.3
Release notes
Sourced from pymongo's releases.
PyMongo 4.6.3
Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-3-release-for-cve-2024-5629/284348
PyMongo 4.6.2
Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-2-released/267404
Changelog
Sourced from pymongo's changelog.
Changes in Version 4.6.3 (2024/03/27)
PyMongo 4.6.3 fixes the following bug:
- Fixed a potential memory access violation when decoding invalid bson.
Issues Resolved ...............
See the
PyMongo 4.6.3 release notes in JIRA_ for the list of resolved issues in this release... _PyMongo 4.6.3 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=38360
Changes in Version 4.6.2 (2024/02/21)
PyMongo 4.6.2 fixes the following bug:
- Fixed a bug appearing in Python 3.12 where "RuntimeError: can't create new thread at interpreter shutdown" could be written to stderr when a MongoClient's thread starts as the python interpreter is shutting down.
Issues Resolved ...............
See the
PyMongo 4.6.2 release notes in JIRA_ for the list of resolved issues in this release... _PyMongo 4.6.2 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=37906
Commits
8da192fBUMP 4.6.356b6b6dPYTHON-4305 Fix bson size check (#1564)449d0f3BUMP to 4.6.3.dev0e04576dDEVPROD-3871 Use teardown_task when there is one function/command (#1533)cf1c6a1PYTHON-4219 Prep for 4.6.2 Release (#1530)d29b2b7PYTHON-4147 [v4.6]: Silence noisy thread.start() RuntimeError at shutdown (#1...0477b9bPYTHON-4077 [v4.6]: Ensure there is a MacOS wheel for Python 3.7 (#1527)ecad17dBUMP 4.6.2.dev0- See full diff in compare view
Updates pytest from 7.4.4 to 9.0.3
Release notes
Sourced from pytest's releases.
9.0.3
pytest 9.0.3 (2026-04-07)
Bug fixes
#12444: Fixed
pytest.approxwhich now correctly takes into account~collections.abc.Mappingkeys order to compare them.#13634: Blocking a
conftest.pyfile using the-p no:option is now explicitly disallowed.Previously this resulted in an internal assertion failure during plugin loading.
Pytest now raises a clear
UsageErrorexplaining that conftest files are not plugins and cannot be disabled via-p.#13734: Fixed crash when a test raises an exceptiongroup with
__tracebackhide__ = True.#14195: Fixed an issue where non-string messages passed to unittest.TestCase.subTest() were not printed.
#14343: Fixed use of insecure temporary directory (CVE-2025-71176).
Improved documentation
- #13388: Clarified documentation for
-pvsPYTEST_PLUGINSplugin loading and fixed an incorrect-pexample.- #13731: Clarified that capture fixtures (e.g.
capsysandcapfd) take precedence over the-s/--capture=nocommand-line options inAccessing captured output from a test function <accessing-captured-output>.- #14088: Clarified that the default
pytest_collectionhook setssession.itemsbefore it callspytest_collection_finish, not after.- #14255: TOML integer log levels must be quoted: Updating reference documentation.
Contributor-facing changes
#12689: The test reports are now published to Codecov from GitHub Actions. The test statistics is visible on the web interface.
-- by
aleguy029.0.2
pytest 9.0.2 (2025-12-06)
Bug fixes
#13896: The terminal progress feature added in pytest 9.0.0 has been disabled by default, except on Windows, due to compatibility issues with some terminal emulators.
You may enable it again by passing
-p terminalprogress. We may enable it by default again once compatibility improves in the future.Additionally, when the environment variable
TERMisdumb, the escape codes are no longer emitted, even if the plugin is enabled.#13904: Fixed the TOML type of the
tmp_path_retention_countsettings in the API reference from number to string.#13946: The private
config.inicfgattribute was changed in a breaking manner in pytest 9.0.0. Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim. It will be deprecated in pytest 9.1 and removed in pytest 10.
... (truncated)
Commits
a7d58d7Prepare release version 9.0.3089d981Merge pull request #14366 from bluetech/revert-14193-backport8127eafRevert "Fix: assertrepr_compare respects dict insertion order (#14050) (#14193)"99a7e60Merge pull request #14363 from pytest-dev/patchback/backports/9.0.x/95d8423bd...ddee02aMerge pull request #14343 from bluetech/cve-2025-71176-simple74eac69doc: Update training info (#14298) (#14301)f92dee7Merge pull request #14267 from pytest-dev/patchback/backports/9.0.x/d6fa26c62...7ee58acMerge pull request #12378 from Pierre-Sassoulas/fix-implicit-str-concat-and-d...37da870Merge pull request #14259 from mitre88/patch-4 (#14268)c34bfa3Add explanation for string context diffs (#14257) (#14266)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the Security Alerts page.