Is pymongo 3.12 vulnerable?
PyPI · 4 releases from 3.12.0 to 3.12.3 · latest pymongo is 4.20.0 · checked 18 Nov 2026
Yes: 6 known advisories
Yes. pymongo 3.12.3, the last 3.12 release, is affected by 6 known security advisories (3 high, 3 medium), including CVE-2026-106435, CVE-2026-96749, CVE-2026-96748. Upgrade to 4.18.3 or later to fix all of them.
pip install 'pymongo>=4.18.3'Is your project on an affected pymongo?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting pymongo 3.12.3
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
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
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
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
pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods
- Affected
- <4.18.1
- Fixed in
- 4.18.1
PyMongo Out-of-bounds Read in the bson module
- Affected
- <4.6.3
- Fixed in
- 4.6.3
Every pymongo 3.12.x release
Affected: 3.12.0 to 3.12.3. Latest pymongo: 4.20.0.
| Version | Known advisories |
|---|---|
| pymongo 3.12.3 | CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747, CVE-2026-88029, CVE-2024-5629 |
| pymongo 3.12.2 | CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747, CVE-2026-88029, CVE-2024-5629 |
| pymongo 3.12.1 | CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747, CVE-2026-88029, CVE-2024-5629 |
| pymongo 3.12.0 | CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747, CVE-2026-88029, CVE-2024-5629 |
Which of your client projects are still on pymongo 3.12?
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.