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.
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
Fixed within 4.18.x, affecting earlier releases
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
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.
| Version | Known advisories |
|---|---|
| pymongo 4.18.3 | None |
| pymongo 4.18.2 | CVE-2026-106435 |
| pymongo 4.18.1 | CVE-2026-106435, CVE-2026-96749, CVE-2026-96748, CVE-2026-96747 |
| pymongo 4.18.0 | CVE-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.