Every CVE Search/ Get API key

CVE-2026-96748

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

8.3 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
High
Availability
None

Exploit likelihood

0.36%Up 0.1 points since Sep 25, 2026
90%50%10%1%

What each source reports

CVE List Score used 8.3

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

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.

Record
CVE-2026-96748
CVSS 4.0
8.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:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Weakness
CWE-177
Updated
2026-11-02
EUVDEUVD-2026-86347 8.3

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.

Record
EUVD-2026-86347
CVSS 4.0
8.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:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-vp6j-j7w5-5xjj 8.3

PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters

Summary

PyMongo percent-decoded the entire host section of a connection string before splitting it into individual host:port entries. A percent-encoded , or : in a hostname therefore decoded into a real delimiter, injecting an additional attacker-chosen host and port into the client's seed list.

Impact

An application that interpolates untrusted input into a MongoDB connection string -- for example, a tenant name or hostname fragment taken from a request -- could be made to add an attacker-controlled server to the seed list. Because %2C and %3A survive most URL-safety checks and only become delimiters inside PyMongo's parser, input that looks like a single hostname to the application becomes two hosts to the driver. The client may then perform topology discovery and authentication against the attacker's host, exposing credentials, or route operations to it.

Unix domain socket paths, the only host identifiers that legitimately require percent-encoding, are not affected.

Patches

Fixed in PyMongo 4.18.2. Percent-decoding was moved into split_hosts and now applies only to Unix domain socket paths, identified by an unescaped .sock suffix before decoding, and only after splitting on ,.

Workarounds

Do not interpolate untrusted input into the host portion of a connection string. If unavoidable, reject or percent-decode-and-validate the value before building the URI.

Details

The decoding was introduced in PyMongo 3.5.0 (PYTHON-1282), where unquote_plus was applied to the whole host section in _validate_uri and, later, _parse_srv, before the string was split on , and :.

Record
GHSA-vp6j-j7w5-5xjj
CVSS 4.0
8.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:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Weakness
CWE-177
Updated
2026-11-02
NVD 8.3

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.

Record
CVE-2026-96748
CVSS 4.0
8.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: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
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Weakness
CWE-177
Updated
2026-11-02
OSV 8.3

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

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.

Record
CVE-2026-96748
CVSS 4.0
8.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:N
Weakness
CWE-177
Updated
2026-11-02
OSVDEBIAN-CVE-2026-96748 8.3

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.

Record
DEBIAN-CVE-2026-96748
CVSS 4.0
8.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: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
Updated
2026-11-02
Show 9 moreShow less
OSVGHSA-vp6j-j7w5-5xjj 8.3

PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters

Summary

PyMongo percent-decoded the entire host section of a connection string before splitting it into individual host:port entries. A percent-encoded , or : in a hostname therefore decoded into a real delimiter, injecting an additional attacker-chosen host and port into the client's seed list.

Impact

An application that interpolates untrusted input into a MongoDB connection string -- for example, a tenant name or hostname fragment taken from a request -- could be made to add an attacker-controlled server to the seed list. Because %2C and %3A survive most URL-safety checks and only become delimiters inside PyMongo's parser, input that looks like a single hostname to the application becomes two hosts to the driver. The client may then perform topology discovery and authentication against the attacker's host, exposing credentials, or route operations to it.

Unix domain socket paths, the only host identifiers that legitimately require percent-encoding, are not affected.

Patches

Fixed in PyMongo 4.18.2. Percent-decoding was moved into split_hosts and now applies only to Unix domain socket paths, identified by an unescaped .sock suffix before decoding, and only after splitting on ,.

Workarounds

Do not interpolate untrusted input into the host portion of a connection string. If unavoidable, reject or percent-decode-and-validate the value before building the URI.

Details

The decoding was introduced in PyMongo 3.5.0 (PYTHON-1282), where unquote_plus was applied to the whole host section in _validate_uri and, later, _parse_srv, before the string was split on , and :.

Record
GHSA-vp6j-j7w5-5xjj
CVSS 4.0
8.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:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Weakness
CWE-177
Updated
2026-11-02
OSVPYSEC-2026-4297 8.3

PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters

Summary

PyMongo percent-decoded the entire host section of a connection string before splitting it into individual host:port entries. A percent-encoded , or : in a hostname therefore decoded into a real delimiter, injecting an additional attacker-chosen host and port into the client's seed list.

Impact

An application that interpolates untrusted input into a MongoDB connection string -- for example, a tenant name or hostname fragment taken from a request -- could be made to add an attacker-controlled server to the seed list. Because %2C and %3A survive most URL-safety checks and only become delimiters inside PyMongo's parser, input that looks like a single hostname to the application becomes two hosts to the driver. The client may then perform topology discovery and authentication against the attacker's host, exposing credentials, or route operations to it.

Unix domain socket paths, the only host identifiers that legitimately require percent-encoding, are not affected.

Patches

Fixed in PyMongo 4.18.2. Percent-decoding was moved into split_hosts and now applies only to Unix domain socket paths, identified by an unescaped .sock suffix before decoding, and only after splitting on ,.

Workarounds

Do not interpolate untrusted input into the host portion of a connection string. If unavoidable, reject or percent-decode-and-validate the value before building the URI.

Details

The decoding was introduced in PyMongo 3.5.0 (PYTHON-1282), where unquote_plus was applied to the whole host section in _validate_uri and, later, _parse_srv, before the string was split on , and :.

Record
PYSEC-2026-4297
CVSS 4.0
8.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:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2026-96748 8.3

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.

Record
UBUNTU-CVE-2026-96748
CVSS 4.0
8.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:N
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Updated
2026-11-02
OSVAZL-105107 No score

CVE-2026-96748 affecting package python-pymongo 4.2.0-9

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.

Record
AZL-105107
Updated
2026-11-05
OSVCLSA-2026-1792396649 No score

TuxCare security update for pymongo (2 CVEs)

TuxCare rebuilt pymongo to address 2 CVEs. Fixed in 3.13.0.post2+tuxcare.

Record
CLSA-2026-1792396649
Updated
2026-11-02
OSVopenSUSE-SU-2026:11935-1 No score

python313-pymongo-4.18.2-1.1 on GA media

These are all security issues fixed in the python313-pymongo-4.18.2-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11935-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:22003-1 No score

Security update for python-pymongo

This update for python-pymongo fixes the following issues:

Changes in python-pymongo:

  • CVE-2026-96749: integer overflow in BSON document encoding allows an unprivileged user to write outside the bounds of an allocated buffer (bsc#1282845)
  • CVE-2026-96748: host injection in connection string leading to database connection redirection due to improper connection string parsing (bsc#1282827)
  • CVE-2026-96747: improper handling of key management endpoint values ending in .sock allows users with write access to the encryption key metadata to open connections to local sockets on the application host (bsc#1282844)
Record
openSUSE-SU-2026:22003-1
Updated
2026-11-02
OSVROOT-APP-PYPI-CVE-2026-96748 No score

CVE-2026-96748 in pymongo - Patched by Root

Root has patched CVE-2026-96748 in the pymongo package for Root:PyPI. Multiple fixed versions available.

Record
ROOT-APP-PYPI-CVE-2026-96748
Updated
2026-11-05
OSVSUSE-SU-2026:4398-1 No score

Security update for python-pymongo

This update for python-pymongo fixes the following issues:

  • CVE-2026-96747: improper handling of key management endpoint values ending in .sock allows users with write access to the encryption key metadata to open connections to local sockets on the application host (bsc#1282844).
  • CVE-2026-96748: host injection in connection string leading to database connection redirection due to improper connection string parsing (bsc#1282827).
  • CVE-2026-96749: integer overflow in BSON document encoding allows an unprivileged user to write outside the bounds of an allocated buffer (bsc#1282845).
Record
SUSE-SU-2026:4398-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pymongo
PyPI
3.5.0 to 4.18.1
4.18.2
python-pymongo
Azure Linux:3
through 4.2.0-9 None known
pymongo
TuxCare:PyPI
From an advisory covering 2 CVEs
3.13.0 up to 3.13.0.post2+tuxcare, plus listed versions
3.13.0.post1+tuxcare
3.13.0.post2+tuxcare
pymongo
Debian:12
All versions, plus listed versions
3.11.0-13.11.0-1+deb12u14.10.1-14.10.1-24.10.1-3
Show 14 moreShow less
4.10.1-44.10.1-54.10.1-64.15.3-14.15.3-24.15.4-14.15.4-24.15.5-14.16.0-14.17.0-14.18.1-14.18.2-14.7.3-14.7.3-2
None known
pymongo
Debian:13
All versions, plus listed versions
4.10.1-64.15.3-14.15.3-24.15.4-14.15.4-2
Show 5 moreShow less
4.15.5-14.16.0-14.17.0-14.18.1-14.18.2-1
None known
pymongo
Debian:14
before 4.18.2-1, plus listed versions
4.10.1-64.15.3-14.15.3-24.15.4-14.15.4-2
Show 4 moreShow less
4.15.5-14.16.0-14.17.0-14.18.1-1
4.18.2-1
pymongo
PyPI
3.5.0 up to 4.18.2, plus listed versions
3.10.03.10.13.11.03.11.13.11.2
Show 45 moreShow less
3.11.33.11.43.12.03.12.13.12.23.12.33.13.03.5.13.6.03.6.13.7.03.7.13.7.23.8.03.9.04.04.0.14.0.24.1.04.1.14.10.04.10.14.114.11.14.11.24.11.34.12.04.12.14.13.04.13.0.dev04.13.14.13.24.14.04.14.14.15.04.15.14.15.24.15.34.15.44.15.54.16.04.16.0.dev04.17.04.18.04.18.1
4.18.2
pymongo
Root:PyPI
before 4.18.1+aikido.1
4.18.1+aikido.14.18.1+aikido.24.17.0+aikido.24.9.2+aikido.24.16.0+aikido.14.6.3+aikido.34.10.1+aikido.14.10.1+aikido.24.8.0+aikido.24.18.0+aikido.24.9.2+aikido.3
python-pymongo
SUSE:Linux Enterprise Module for Package Hub 15 SP7
From an advisory covering 3 CVEs
before 3.11.0-150300.3.6.1
3.11.0-150300.3.6.1
pymongo
Ubuntu:14.04:LTS
All versions, plus listed versions
2.6-12.6.2-12.6.3-12.6.3-1build1
None known
Show 9 moreShow less
Affected packages
PackageAffectedFixed
pymongo
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
3.0.3-13.2-13.2-1build13.2-1ubuntu0.1~esm1
None known
pymongo
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
3.4.0-1build23.6.1+dfsg1-13.6.1+dfsg1-1ubuntu0.1~esm1
None known
pymongo
Ubuntu:20.04:LTS
All versions, plus listed versions
3.7.1-1.13.7.1-1.1build13.10.1-0ubuntu23.10.1-0ubuntu2.1
None known
pymongo
Ubuntu:22.04:LTS
All versions, plus listed versions
3.11.0-1build23.11.0-1build33.11.0-1build43.11.0-1ubuntu0.22.04.1
None known
pymongo
Ubuntu:24.04:LTS
All versions, plus listed versions
3.11.0-1build63.11.0-1build73.11.0-1build83.11.0-1ubuntu0.24.04.1
None known
pymongo
Ubuntu:26.10
All versions, plus listed versions
4.16.0-1build14.17.0-1
None known
pymongo
Ubuntu:26.04:LTS
All versions, plus listed versions
4.10.1-64.15.3-14.15.3-24.15.5-14.16.0-14.16.0-1build1
None known
python-pymongo
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 4.18.2-1.1
4.18.2-1.1
python-pymongo
openSUSE:Leap 16.0
From an advisory covering 3 CVEs
before 4.6.3-bp160.2.1
4.6.3-bp160.2.1

History

History
RecordedChangedSources
affected
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-96748 is a high vulnerability (CVSS 8.3) in Mongodb Python Driver, published September 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.36%, the 30th percentile. Fixed in pymongo 4.18.2.

References

Show 16 moreShow less
This page doesn't list everything

Left out here: 20 versions. The JSON record has them.

MoveEnter Open