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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pymongo | < 4.18.1 | 4.18.1 |
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
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.1
- https://jira.mongodb.org/browse/PYTHON-5992
- https://pypi.org/project/pymongo
- https://github.com/advisories/GHSA-8fvv-fgr5-f8ch
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-943- Platform
- Python (PyPI)
- Package
pymongo- Disclosed
- 05.10.2026
- Updated
- 15.10.2026 18:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-4294 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-8fvv-fgr5-f8ch - CC BY 4.0
Vulnerability history: pymongo
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 6
- First → latest
- 08.2013 10.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 4
Disclosures per year
- 2017: 0
- 2018: 0
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 0
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 4
earlier: 1
-
pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.