Advisory record · GHSA-vp6j-j7w5-5xjj

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

CVSS 8.3 HighEPSS 0.0036 · 30th percentile

Published by the GitHub Advisory Database at 5 Oct 2026, 23:47 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pymongoPyPI>=3.5.0, <4.18.24.18.2
Identifiers
GHSA-vp6j-j7w5-5xjj · CVE-2026-96748 · PYSEC-2026-4297
Weakness (CWE)
CWE-177
Published
5 Oct 2026
Updated
15 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PyMongo versions from 3.5.0 before 4.18.2 are vulnerable. The driver percent-decoded the whole host section of a connection string before splitting it into host and port entries, so a percent-encoded comma or colon in a hostname could add an extra attacker-chosen host to the seed list. An attacker who can influence untrusted input placed into a connection string could cause the client to contact their server, potentially exposing credentials. Upgrade to PyMongo 4.18.2. Do not put untrusted input into the host portion of a connection string.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.3 High 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N CNA (mongodb)
  • CISA KEV Not listed.
  • EPSS 0.0036, the 30th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.