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

Published Sep 24, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/pymongo

Event History

Sep 24, 2026
CVE Published
via MITRE·06:18 PM
Data Sourced
via MITRE·06:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are exposed when they insert a hostname supplied by an unauthenticated party into a PyMongo connection string. The issue depends on that untrusted value being placed in the host portion of the URI.

2

What does an attacker need to do to exploit it?

An attacker needs to provide a hostname value that includes percent-encoded connection-string delimiters. Because decoding occurs before the host list is split, this can add attacker-chosen servers to the client's connection targets.

3

What could an attacker gain or change?

The application may send its authentication exchange and database operations to an attacker-chosen server. That server can observe limited information and return altered results.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203