MongoDB Node.js driver version 4.5.0 introduces several updates compared to the previous stable version 4.4.1. While the core dependencies like socks, denque, saslprep, and mongodb-connection-string-url remain consistent, there's a bump in the bson dependency from version 4.6.1 to 4.6.2.
The most significant changes are found in the devDependencies, these reflect enhancements in the development and testing tools. Notably, eslint is updated from version 8.10.0 to 8.12.0. Several type definitions @types/node saw an update from version 17.0.21 to 17.0.23. A few packages have been updated like mocha, yargs, prettier (formatting code according to standards), typescript and @microsoft/api-extractor.
These upgrades collectively suggest improvements in code linting, formatting, static code analysis, and overall developer experience. While these changes may not drastically alter the runtime behavior of the driver itself, they contribute to a more robust and maintainable codebase, potentially leading to fewer bugs and improved performance over time.
The file size for the package has decreased between versions, the older version 4.4.1 has an unpacked size of 2789977 bytes and the newer version 4.5.0 has 2549596 bytes which is a considerable difference. These modifications make version 4.5.0 a worthwhile upgrade for developers seeking the latest improvements in the MongoDB Node.js driver ecosystem.
All the vulnerabilities related to the version 4.5.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).