CVE-2026-96748

Connection redirection via percent-encoded delimiter injection in connection string hosts

State
Published
Severity
8.3 High
Published
Sep 24, 2026
Updated
Sep 24, 2026
Reserved
Sep 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.3 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:Nmongodb
3.16.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:Nmongodb

Weaknesses

  • CWE-177 Improper Handling of URL Encoding (Hex Encoding)

Affected Products

ProductVersions
Python DriverMongoDB
  • before 4.18.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.