The PyMongo distribution contains tools for interacting with MongoDB
database from Python. The bson package is an implementation of
the BSON format for Python. The pymongo package is a native Python
driver for MongoDB. The gridfs package is a gridfs
implementation on top of pymongo.
Provides
Requires
License
Apache-2.0
Changelog
* Tue Nov 24 2026 Steve Kowalik <steven.kowalik@suse.com>
- CVE-2026-129927: Sanitize URI parsing error messages and redact
sensitive options in MongoClient repr (bsc#1291084)
* Add patch CVE-2026-129927-sanitize-uri-errors.patch
* Tue Sep 29 2026 Daniel Garcia <daniel.garcia@suse.com>
- CVE-2026-96749: integer overflow in BSON document encoding allows an
unprivileged user to write outside the bounds of an allocated buffer
(bsc#1282845)
* Add patch CVE-2026-96749.patch
* Tue Sep 29 2026 Daniel Garcia <daniel.garcia@suse.com>
- CVE-2026-96748: host injection in connection string leading to
database connection redirection due to improper connection string
parsing (bsc#1282827)
* Add patch CVE-2026-96748.patch
* Tue Sep 29 2026 Daniel Garcia <daniel.garcia@suse.com>
- CVE-2026-96747: improper handling of key management endpoint values
ending in `.sock` allows users with write access to the encryption
key metadata to open connections to local sockets on the application
host (bsc#1282844)
* Add patch CVE-2026-96747.patch
* Tue May 07 2024 Dirk Müller <dmueller@suse.com>
- update to 4.6.3 (bsc#1222492, CVE-2024-21506):
* Fixed a potential memory access violation when decoding invalid
bson.
- update to 4.6.2:
* 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.
- update to 4.6.1:
* Ensure retryable read OperationFailure errors re-raise
exception when 0 or NoneType error code is provided.
- update to 4.6.0:
* Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-6-0-released/251866
- update to 4.5.0:
* Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-5-0-released/240662
- update to 4.4.1:
* Fixed a bug where pymongo would raise a ConfigurationError:
Invalid SRV host error when connecting to a “mongodb+srv://”
URI that included capital letters in the SRV hosts returned
from DNS. (PYTHON-3800).
* Fixed a minor reference counting bug in the C extension (PYTHON-3798).
- update to 4.4.0:
* Release notes: https://www.mongodb.com/community/forums/t/pymongo-4-4-released/232211
* Sat Jun 10 2023 ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
* Tue Dec 06 2022 Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 4.3.3
Version 4.3.3 documents support for the following:
* CSFLE on-demand credentials for cloud KMS providers.
* Authentication support for EKS Clusters.
* Added the Client Side Operation Timeout example page to improve the documentation for pymongo.timeout().
Bug Fixes
* Fixed a performance regression in download_to_stream() and download_to_stream_by_name() by reading in chunks instead of line by line (PYTHON-3502).
* Improved performance of gridfs.grid_file.GridOut.read() and gridfs.grid_file.GridOut.readline() (PYTHON-3508).
* Fri Oct 28 2022 Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 4.3.2
Complete Changelog https://pymongo.readthedocs.io/en/4.3.2/changelog.html
* Sat Oct 01 2022 Dirk Müller <dmueller@suse.com>
- update to 4.2.0:
- Support for MongoDB 6.0.
- Support for the Queryable Encryption beta with MongoDB 6.0. Note that backwards-breaking
changes may be made before the final release. See :ref:`automatic-queryable-client-side-encryption` for example usage.
- Provisional (beta) support for :func:`pymongo.timeout` to apply a single timeout
to an entire block of pymongo operations.
- Added the ``timeoutMS`` URI and keyword argument to :class:`~pymongo.mongo_client.MongoClient`.
- Added the :attr:`pymongo.errors.PyMongoError.timeout` property which is ``True`` when
the error was caused by a timeout.
- Added t