# CVE-2026-96748: Connection redirection via percent-encoded delimiter injection in connection string hosts

- Severity: High 8.3 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-09-24T18:18:12.032Z
- Modified: 2026-10-15T14:56:13.301Z
- Also known as: GHSA-vp6j-j7w5-5xjj, PYSEC-2026-4297
- Weaknesses: CWE-177
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB Python Driver: before 4.18.2
- pymongo (PyPI): from 3.5.0 before 4.18.2

## Every score

- mongodb: CVSS:4.0 8.3 High `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`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- PyPA Advisory Database: 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`

## References

- <https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-vp6j-j7w5-5xjj> (web)
- <https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2> (web)
- <https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst> (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)

## Sources

- CVE List: [CVE-2026-96748](https://www.cve.org/CVERecord?id=CVE-2026-96748), CVE Terms of Use, modified 2026-09-24
- GitHub Advisory Database: [GHSA-vp6j-j7w5-5xjj](https://github.com/advisories/GHSA-vp6j-j7w5-5xjj), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-96748](https://nvd.nist.gov/vuln/detail/CVE-2026-96748), Public domain, modified 2026-09-24
- PyPA Advisory Database: [PYSEC-2026-4297](https://osv.dev/vulnerability/PYSEC-2026-4297), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-96748 · Whole record: https://cve.day/CVE-2026-96748.json · Rebuilt by cve.day 2026-11-25T22:59:40.900Z
