Improper Handling of URL Encoding (Hex Encoding) in mongo-python-driver - CVE-2026-96748

 

Improper Handling of URL Encoding (Hex Encoding) in mongo-python-driver - CVE-2026-96748

Published: September 24, 2026


Vulnerability identifier: #VU151938
CSH Severity: Medium
CVSS v4: 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]
CVE-ID: CVE-2026-96748
CWE-ID: CWE-177
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose credentials or route operations to an attacker-controlled server.

The vulnerability exists due to improper handling of URL encoding in PyMongo connection string host parsing when processing connection strings containing untrusted host input. A remote attacker can supply a hostname fragment containing percent-encoded delimiters to inject an attacker-controlled host and port into the client's seed list.

Unix domain socket paths are not affected.


Affected software

mongo-python-driver
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Package Hub 15
openSUSE Leap
python3-pymongo
python2-pymongo-debuginfo
python2-pymongo
python-pymongo-debugsource
python-pymongo-debuginfo
python3-pymongo-debuginfo

How to mitigate CVE-2026-96748

Install security update from vendor's website.

mongo-python-driver - update to 4.18.2
python3-pymongo - update to 3.11.0-150300.3.6.1
python2-pymongo-debuginfo - update to 3.11.0-150300.3.6.1
python2-pymongo - update to 3.11.0-150300.3.6.1
python-pymongo-debugsource - update to 3.11.0-150300.3.6.1
python-pymongo-debuginfo - update to 3.11.0-150300.3.6.1
python3-pymongo-debuginfo - update to 3.11.0-150300.3.6.1

External References

Related Security Bulletins