p PatchFirst

CVE-2026-96748

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.3 · High · EPSS 0.3% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • python driver

    Versions
    • ≥ 0, < 4.18.2: Affected (semver)

    Update to 4.18.2

  • pymongo Debian:12

    Versions
    • 3.11.0-1
    • 3.11.0-1+deb12u1
    • 4.10.1-1
    • 4.10.1-2
    • 4.10.1-3
    • 4.10.1-4
    • 4.10.1-5
    • 4.10.1-6
    • 4.15.3-1
    • 4.15.3-2
    • 4.15.4-1
    • 4.15.4-2
    • 4.15.5-1
    • 4.16.0-1
    • 4.17.0-1
    • 4.18.1-1
    • 4.18.2-1
    • 4.7.3-1
    • 4.7.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Debian:13

    Versions
    • 4.10.1-6
    • 4.15.3-1
    • 4.15.3-2
    • 4.15.4-1
    • 4.15.4-2
    • 4.15.5-1
    • 4.16.0-1
    • 4.17.0-1
    • 4.18.1-1
    • 4.18.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Debian:14

    Versions
    • 4.10.1-6
    • 4.15.3-1
    • 4.15.3-2
    • 4.15.4-1
    • 4.15.4-2
    • 4.15.5-1
    • 4.16.0-1
    • 4.17.0-1
    • 4.18.1-1
    Affected ranges
    • ECOSYSTEM: < 4.18.2-1

    Update to 4.18.2-1

  • pymongo PyPI

    Versions
    • 3.10.0
    • 3.10.1
    • 3.11.0
    • 3.11.1
    • 3.11.2
    • 3.11.3
    • 3.11.4
    • 3.12.0
    • 3.12.1
    • 3.12.2
    • 3.12.3
    • 3.13.0
    • 3.5.0
    • 3.5.1
    • 3.6.0
    • 3.6.1
    • 3.7.0
    • 3.7.1
    • 3.7.2
    • 3.8.0
    • 3.9.0
    • 4.0
    • 4.0.1
    • 4.0.2
    • 4.1.0
    • 4.1.1
    • 4.10.0
    • 4.10.1
    • 4.11
    • 4.11.1
    • 4.11.2
    • 4.11.3
    • 4.12.0
    • 4.12.1
    • 4.13.0
    • 4.13.0.dev0
    • 4.13.1
    • 4.13.2
    • 4.14.0
    • 4.14.1
    • 4.15.0
    • 4.15.1
    • 4.15.2
    • 4.15.3
    • 4.15.4
    • 4.15.5
    • 4.16.0
    • 4.16.0.dev0
    • 4.17.0
    • 4.18.0
    • 4.18.1
    • 4.2.0
    • 4.3.2
    • 4.3.3
    • 4.4.0
    • 4.4.0b0
    • 4.4.1
    • 4.5.0
    • 4.6.0
    • 4.6.1
    • 4.6.2
    • 4.6.3
    • 4.7.0
    • 4.7.1
    • 4.7.2
    • 4.7.3
    • 4.8.0
    • 4.8.0b0
    • 4.9
    • 4.9.1
    • 4.9.2
    Affected ranges
    • ECOSYSTEM: ≥ 3.5.0, < 4.18.2

    Update to 4.18.2

  • pymongo Ubuntu:14.04:LTS

    Versions
    • 2.6-1
    • 2.6.2-1
    • 2.6.3-1
    • 2.6.3-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:Pro:16.04:LTS

    Versions
    • 3.0.3-1
    • 3.2-1
    • 3.2-1build1
    • 3.2-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:Pro:18.04:LTS

    Versions
    • 3.4.0-1build2
    • 3.6.1+dfsg1-1
    • 3.6.1+dfsg1-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:20.04:LTS

    Versions
    • 3.7.1-1.1
    • 3.7.1-1.1build1
    • 3.10.1-0ubuntu2
    • 3.10.1-0ubuntu2.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:22.04:LTS

    Versions
    • 3.11.0-1build2
    • 3.11.0-1build3
    • 3.11.0-1build4
    • 3.11.0-1ubuntu0.22.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:24.04:LTS

    Versions
    • 3.11.0-1build6
    • 3.11.0-1build7
    • 3.11.0-1build8
    • 3.11.0-1ubuntu0.24.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:26.10

    Versions
    • 4.16.0-1build1
    • 4.17.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pymongo Ubuntu:26.04:LTS

    Versions
    • 4.10.1-6
    • 4.15.3-1
    • 4.15.3-2
    • 4.15.5-1
    • 4.16.0-1
    • 4.16.0-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →