Server-Side Request Forgery (SSRF) in mongo-python-driver - CVE-2026-96747
Published: September 24, 2026
Vulnerability details
The vulnerability allows a remote user to initiate a connection to an arbitrary Unix domain socket.
The vulnerability exists due to improper input validation in the _EncryptionIO.kms_request KMS endpoint handling when processing a .sock-suffixed KMS endpoint from a key vault document. A remote user can set masterKey.endpoint on a data key to an attacker-chosen socket path to initiate a connection to an arbitrary Unix domain socket.
Only applications using client-side field level encryption or Queryable Encryption with a key vault writable by untrusted parties are affected. The connection is wrapped in a verifying TLS context, so the TLS handshake fails and no KMS message is sent.