PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-96748 MongoDB CVE debrief

A vulnerability in PyMongo's connection string parsing allows an attacker to inject a malicious host into the client's seed list by percent-encoding delimiters. This issue affects applications that interpolate untrusted input into a MongoDB connection string, potentially leading to credential exposure or unauthorized operations. The vulnerability arises from PyMongo's percent-decoding of the entire host section of a connection string before splitting it into individual host:port entries. This allows an attacker to inject an additional host and port into the client's seed list. Defenders should prioritize verifying and updating PyMongo to version 4.18.2 or later, especially in ...

Vendor
MongoDB
Product
pymongo
CVSS
HIGH 8.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-05
Original CVE updated
2026-10-15
Advisory published
2026-10-05
Advisory updated
2026-10-15

Who should care

Defenders responsible for maintaining MongoDB connections and applications that use PyMongo should assess exposure and prioritize verification and remediation. This includes reviewing applications that interpolate untrusted input into MongoDB connection strings and verifying PyMongo versions. Additionally, defenders should implement security measures to prevent unauthorized access and monitor for potential credential exposure or unauthorized operations.

Why it matters

CVE-2026-96748 is a vulnerability in PyMongo's connection string parsing that could allow an attacker to inject a malicious host into the client's seed list, potentially leading to credential exposure or unauthorized operations. Defenders should prioritize verifying and updating PyMongo, especially in applications using untrusted input in MongoDB connection strings.

  • Potential credential exposure due to unauthorized host addition
  • Possible unauthorized operations through malicious host routing
  • Need for verification of affected versions and remediation through updates
  • Importance of secure connection string handling practices

Technical summary

PyMongo's connection string parsing vulnerability allows an attacker to inject a malicious host into the client's seed list by percent-encoding delimiters. This issue affects applications that interpolate untrusted input into a MongoDB connection string. The vulnerability arises from PyMongo's percent-decoding of the entire host section of a connection string before splitting it into individual host:port entries. This allows an attacker to inject an additional host and port into the client's seed list. Defenders should prioritize verifying and updating PyMongo to version 4.18.2 or later, especially in applications that use untrusted input in MongoDB connection strings. The fix involves moving percent-decoding

Defensive priority

Defenders should prioritize verifying and updating PyMongo to version 4.18.2 or later, especially in applications that use untrusted input in MongoDB connection strings.

Recommended defensive actions

  • Verify and update PyMongo to version 4.18.2 or later
  • Review applications that use untrusted input in MongoDB connection strings
  • Implement additional security measures to prevent unauthorized access
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by PyMongo's percent-decoding of the entire host section of a connection string before splitting it into individual host:port entries. This allows an attacker to inject an additional host and port into the client's seed list.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-96748 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-96748

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-96748 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-96748

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-vp6j-j7w5-5xjj.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-vp6j-j7w5-5xjj

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/pull/3066

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/commit/1e7a56db4649b14c4c9a6ac20aa4a8d0d1bb238a

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.