PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding

Date Oct 5, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product PyPI ยท pymongo
CVE CVE-2026-96749
High-risk advisory CVE-2026-96749

Summary

PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding

Why it matters

GitHub has published a reviewed security advisory for pymongo. Prioritize it with other application dependency updates, especially because EPSS places it in the 2% percentile.

Operator check

Check whether pymongo is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available. CVSS score: 7.5. EPSS probability: 0.1%; percentile: 2%.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.