The MongoDB Spark Connector has an insufficiently protected credentials weakness in its catalog table metadata. When the connection string with embedded credentials is set on the catalog, a Spark SQL user with basic privileges can read table metadata and see that connection string in plaintext. The result may be unintended disclosure of the configured database username and password.