Advisory

GHSA-8fvv-fgr5-f8ch

Also known as: CVE-2026-88029, PYSEC-2026-4294

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-05 23:27 UTC
Modified
2026-10-15 14:55 UTC

Affected packages and fixes

pymongo

PyPI · All systems

Affected

  • introduced 0, fixed 4.18.1 (ecosystem)

Fixed versions

4.18.1

Fix

  • Fixed version 4.18.1
    pip install --upgrade pymongo==4.18.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences