CVE-2026-88029: pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods
Impact When reading/writing via an ID with the GridFS API, require an exact match on the given ID. Otherwise, if a Hash is given in place of the ID, it may be interpreted as criteria, overriding the ID match. Patches Patch available in pymongo = 4.18.1 Workarounds Ensure your existing workflow only supports exact matching on the GridFS API.
Published Oct 5, 2026
Affected packages
pymongo
- Ecosystem
- PyPI
- Affected
- <= 4.18.0
- Fixed in
- 4.18.1
- Check
pip show pymongo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
When reading/writing via an ID with the GridFS API, require an exact match on the given ID. Otherwise, if a Hash is given in place of the ID, it may be interpreted as criteria, overriding the ID match.
Patches
Patch available in pymongo >= 4.18.1
Workarounds
Ensure your existing workflow _only_ supports exact matching on the GridFS API.
References
- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-8fvv-fgr5-f8ch
- https://nvd.nist.gov/vuln/detail/CVE-2026-88029
- https://github.com/mongodb/mongo-python-driver/pull/3046
- https://github.com/mongodb/mongo-python-driver/commit/3ef1c607859589a0086446ad6f557791a2813681
- https://github.com/mongodb/mongo-python-driver/commit/fa676586ba4b399168a4d1d41c30dc2166cc44fd
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.1
- https://jira.mongodb.org/browse/PYTHON-5992
- https://github.com/advisories/GHSA-8fvv-fgr5-f8ch
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-106435
MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element
high8.2Oct 27, 2026CVE-2026-96747
PyMongo: PYTHON-5990 Forced Unix domain socket connection via a .sock KMS endpoint in client-side field level encryption
medium5.0Oct 5, 2026CVE-2026-96748
PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters
high6.5Oct 5, 2026CVE-2026-96749
PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding
high8.4Oct 5, 2026CVE-2024-5629
PyMongo Out-of-bounds Read in the bson module
medium4.7Jun 5, 2024
