// Security Advisory Triage
PyMongo host injection via percent-encoded connection string delimiters
GitHub advisories — pip · published 2026-10-06 18:27 UTC
WHAT CHANGEDGitHub published CVE-2026-96748 on 5 October 2026, a high-severity host injection vulnerability in PyMongo connection string parsing. Attackers can inject malicious hosts using percent-encoded delimiters. The vulnerability is patched in PyMongo 4.18.2.
WHY IT MATTERSIf your application accepts user-controlled MongoDB connection strings or constructs them from untrusted input, an attacker can redirect database connections to a server they control, exposing credentials and data. This is a direct remote attack surface in any service that parses connection strings from external sources.
WHAT TO DOUpgrade to PyMongo 4.18.2 or later. If you cannot upgrade immediately, audit all code paths that construct or parse MongoDB connection strings and ensure no user input reaches the connection string parser without strict validation of the host component.
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-vp6j-j7w5-5xjj +summary: PyMongo: PYTHON-5986 Host injection in PyMongo connection string parsing via percent-encoded delimiters +severity: high +published_at: 2026-10-05T23:47:07Z +cve_id: CVE-2026-96748 +vulnerabilities[].package.name: pymongo +vulnerabilities[].first_patched_version: 4.18.2
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | PyMongo is a standard dependency for MongoDB-backed services. Host injection in connection string parsing affects authentication and routing. |
| signals | PyMongo is a widely-used Python database driver in dependency trees · host injection in connection string parsing is a real attack surface · high severity rating with CVE assigned · patched version available (4.18.2) · new advisory entry with published date |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |