Is pymongo 4.18 vulnerable?

PyPI · 4 releases from 4.18.0 to 4.18.3 · latest pymongo is 4.20.0 · checked 18 Nov 2026

No known advisories in the last release

pymongo 4.18.3, the last 4.18 release, has no known advisories. 5 advisories affect earlier 4.18.x releases, so update to 4.18.3.

Update within 4.18:pip install 'pymongo>=4.18.3'

Is your project on an affected pymongo?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Fixed within 4.18.x, affecting earlier releases

  • HighCVE-2026-106435GHSA-98qm-wvgf-w4cf27 Oct 2026

    MongoDB Python Driver: Out-of-bounds read in BSON decoding via a malformed Regex element

    Affected
    >=3.9.0 <4.18.3
    Fixed in
    4.18.3
  • HighCVE-2026-96749GHSA-v4x9-3549-crwv5 Oct 2026

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

    Affected
    <4.18.2
    Fixed in
    4.18.2
  • HighCVE-2026-96748GHSA-vp6j-j7w5-5xjj5 Oct 2026

    PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters

    Affected
    >=3.5.0 <4.18.2
    Fixed in
    4.18.2
  • MediumCVE-2026-96747GHSA-qx36-8mw2-4r3x5 Oct 2026

    PyMongo: PYTHON-5990 Forced Unix domain socket connection via a .sock KMS endpoint in client-side field level encryption

    Affected
    >=3.9.0 <4.18.2
    Fixed in
    4.18.2
  • MediumCVE-2026-88029GHSA-8fvv-fgr5-f8ch5 Oct 2026

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

    Affected
    <4.18.1
    Fixed in
    4.18.1

Every pymongo 4.18.x release

Affected: 4.18.0 to 4.18.2. 4.18.3 is not affected. Latest pymongo: 4.20.0.

VersionKnown advisories
pymongo 4.18.3None
pymongo 4.18.2CVE-2026-106435
pymongo 4.18.1CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747
pymongo 4.18.0CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747, CVE-2026-88029

Which of your client projects are still on pymongo 4.18?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact pymongo version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other pymongo versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.