Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.4CVE-2026-135146

MongoDB Python Driver – improper certificate revocation check (stapled OCSP)

Published 25/11/2026 · Updated 25/11/2026 · MongoDB Python Driver

Summary

The MongoDB Python Driver, versions 3.11.0 up to but excluding 4.20.2, improperly checks TLS certificate revocation in its optional revocation-checking support (stapled OCSP responses). As a result, the client may accept a connection to a server presenting a revoked certificate that is still within its validity period and otherwise trusted by the client.

Per the CVSS vector, the attack is network-based, requires no authentication and no user interaction, but has high complexity: the attacker must operate the network endpoint the client connects to and hold a revoked but still-dated certificate trusted by the client.

Successful exploitation may disclose application credentials and other session data (high confidentiality impact) and cause the client to treat responses from that endpoint as genuine (high integrity impact). The vulnerability is not listed in the CISA KEV catalog.

Who is affected

Organizations whose Python applications use the MongoDB Python Driver (3.11.0 – <4.20.2) with TLS certificate revocation checking enabled.

What to do

  1. Upgrade the MongoDB Python Driver (pymongo) to version 4.20.2 or later.
  2. Inventory applications and environments using the driver and check the installed version (e.g. in dependency lists).
  3. Determine where TLS revocation-checking options are used and prioritize patching those systems.
  4. After upgrading, consider rotating credentials of applications that connected over untrusted networks.
  5. Follow the vendor's advisory (https://jira.mongodb.org/browse/PYTHON-6189) for further details.

Affected products and versions

MongoDB Python Driver3.11.0 – < 4.20.2Fixed in: 4.20.2

CVSS vector, explained

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Attack vector
Network (from the internet)
Attack complexity
High
Privileges required
None (no login)
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
High impact
Availability
None

Weakness type (CWE)

  • CWE-299 Improper Check for Certificate Revocation

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.