What’s Vulnerable › Vulnerabilities
CVE-2026-96748: Connection redirection via percent-encoded delimiter injection in connection string hosts
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-24 · updated 2026-09-24
- Weakness: CWE-177
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.
Affected products
- MongoDB Python Driver: before 4.18.2 — fixed in 4.18.2
How to fix
Upgrade to a fixed version: MongoDB Python Driver 4.18.2. Check the vendor advisory for mitigations.
References
- https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2
- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-vp6j-j7w5-5xjj
Get alerted when CVE-2026-96748 or the next vulnerability affects your stack