PyPI (Python)Worst: High10 advisories

pymongo: known vulnerabilities

pymongo has 10 reviewed security advisories in the GitHub Advisory Database — 3 high, 7 moderate. The most recent was published 2026-10-27. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pymongo versions running across your servers, containers and images, and ranks what to patch first.

How to fix pymongo

Upgrade pymongo to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade pymongo (pin pymongo>=4.18.3)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (10)

MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element High CWE-125 — Affected: from 3.9.0 up to 4.18.3. Fixed in 4.18.3. Published 2026-10-27. GHSA-98qm-wvgf-w4cf · CVE-2026-106435
Duplicate Advisory: PYTHON-6110 Out-of-bounds read in BSON decoding via a malformed Regex element Moderate 5.1 CWE-125 — Affected: 3.9.0 through 4.18.2. No fixed release is listed. Published 2026-10-08. GHSA-86gh-39m5-hhg6
pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods Moderate CWE-943 — Affected: before 4.18.1. Fixed in 4.18.1. Published 2026-10-05. GHSA-8fvv-fgr5-f8ch · CVE-2026-88029
PyMongo: PYTHON-5990 Forced Unix domain socket connection via a .sock KMS endpoint in client-side field level encryption Moderate 5.0 CWE-20 CWE-918 — Affected: from 3.9.0 up to 4.18.2. Fixed in 4.18.2. Published 2026-09-24. GHSA-qx36-8mw2-4r3x · CVE-2026-96747
PyMongo: PYTHON-5996 Heap out-of-bounds write via signed size overflow in BSON document encoding High 8.4 CWE-190 — Affected: before 4.18.2. Fixed in 4.18.2. Published 2026-09-24. GHSA-v4x9-3549-crwv · CVE-2026-96749
PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters High 6.5 CWE-177 — Affected: from 3.5.0 up to 4.18.2. Fixed in 4.18.2. Published 2026-09-24. GHSA-vp6j-j7w5-5xjj · CVE-2026-96748
Duplicate Advisory: pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods Moderate 8.3 CWE-943 — Affected: up to and including 4.18.0. No fixed release is listed. Published 2026-09-10. GHSA-8h2c-ghff-mpg9
PyMongo Out-of-bounds Read in the bson module Moderate 4.7 CWE-125 — Affected: before 4.6.3. Fixed in 4.6.3. Published 2024-06-05. GHSA-m87m-mmvp-v9qm · CVE-2024-5629
PyMongo Out-of-bounds Read in the bson module Moderate 5.2 CWE-125 — Affected: before 4.6.3. Fixed in 4.6.3. Published 2024-04-06. GHSA-cr6f-gf5w-vhrc
Use of NullPointerException Catch to Detect NULL Pointer Dereference in Pymongo Moderate CWE-395 — Affected: before 2.5.2. Fixed in 2.5.2. Published 2013-08-15. GHSA-x33v-f3gp-gw2c · CVE-2013-2132

Find pymongo across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.