MongoDB's Node.js driver saw a release of version 4.10.0 on September 19, 2022, following version 4.9.1 released on August 31, 2022. Both versions maintain the core dependencies important for connecting to MongoDB databases, including bson, socks, denque, saslprep, and mongodb-connection-string-url, ensuring consistent connectivity and data handling. Examining the devDependencies, reveals identical tooling for development, testing, and linting showing that the developer workflow and code quality processes remain consistent between releases. These versions share the same license (Apache-2.0), repository, and author, further solidifying the project's consistent management and open-source commitment. The key difference appears in the dist object. Version 4.10.0 has an unpacked size of 2677963 bytes, compared to 4.9.1's 2602485 bytes, signaling that 4.10.0 may include additional features, bug fixes, or optimizations that contribute to the increased size. While the precise details of these changes aren't explicitly outlined in the provided metadata, upgrading to 4.10.0 is likely beneficial for developers seeking the latest enhancements and potential performance improvements within the MongoDB Node.js driver while maintaining compatibility. Developers should consult the official release notes of MongoDB for a comprehensive overview of the changes between versions 4.9.1 and 4.10.0 to understand the impact of these updates fully.
All the vulnerabilities related to the version 4.10.0 of the package
MongoDB Driver may publish events containing authentication-related data
Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.
Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).
This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).