CVE-2026-96748
Description
PyMongo's connection string parsing decodes percent-encoded characters in the host portion before the host list is separated on its delimiters. When an application places a hostname value supplied by an unauthenticated party into a connection string, that party may cause additional servers of their choosing to be added to the application's database client. The application may then send its authentication exchange and database operations to one of those servers, which can observe limited information and return altered results.
How to fix
- pymongo4.18.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pymongoPyPI | 3.5.0 ≤ v < 4.18.2 | 4.18.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.