CVE-2026-96748
HIGH 8.3CVSS 4.0PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters
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.
- Published
- 24 Sep 2026
- Last modified
- 15 Oct 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-177
- Also known as
- GHSA-vp6j-j7w5-5xjjPYSEC-2026-4297
- Sources
- NVDJSONOSV GHSA-vp6j-j7w5-5xjjJSONOSV PYSEC-2026-4297JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@mongodb.com (Secondary) | CVSS 4.0 | HIGH 8.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | pymongo | >= 3.5.0, < 4.18.2 | 4.18.2 |
References
- https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst · WEB
- https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2 · WEB
- https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-vp6j-j7w5-5xjj · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-96748 · ADVISORY
- https://github.com/mongodb/mongo-python-driver/pull/3066 · WEB
- https://github.com/mongodb/mongo-python-driver/commit/1e7a56db4649b14c4c9a6ac20aa4a8d0d1bb238a · WEB
- https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7 · WEB
- https://github.com/mongodb/mongo-python-driver · PACKAGE
- https://www.mongodb.com/community/forums/t/pymongo-4-18-2-released/343732 · WEB
- https://pypi.org/project/pymongo · PACKAGE
- https://github.com/advisories/GHSA-vp6j-j7w5-5xjj · ADVISORY
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 24 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Oct 2026)