Skip to content
MongoDBGHSA-8fvv-fgr5-f8ch

PYTHON-5994 Use exact match for file ID in GridFS delete methods

Medium6.1CVE-2026-88029 · Published Sep 15, 2026

### 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://jira.mongodb.org/browse/PYTHON-5992

GitHub advisory

Affected versions

PackageAffectedFixed in
pymongo
PyPI
< 4.18.14.18.1
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-943

More MongoDB advisories

All MongoDB

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.