GHSA-8fvv-fgr5-f8chMedium

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

Published
October 5, 2026
Last Modified
October 5, 2026

🔗 CVE IDs covered (1)

📋 Description

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 products1

  • pip/pymongo:<= 4.18.0

🔗 References (8)