MongoDB Node.js driver version 4.11.0 introduces several updates compared to its predecessor, version 4.10.0. One key difference lies in the dependencies, with 4.11.0 featuring updated versions of @aws-sdk/credential-providers (from not present to ^3.186.0) and mongodb-connection-string-url (from ^2.5.3 to ^2.5.4). The "socks" dependency also sees a minor bump. These updates likely bring bug fixes, performance enhancements, and potentially new features crucial for connecting to and interacting with MongoDB Atlas and other MongoDB deployments.
Regarding development dependencies, version 4.11.0 incorporates more recent versions of several tools, including eslint, mocha, typescript,yargs, source-map-support and packages from @microsoft, @typescript-eslint. The @aws-sdk/credential-providers dependency has also been added to the optional dependencies. While these changes don't directly impact the runtime behavior of the driver for end-users, they enhance the development workflow. The increased file count and slightly reduced unpacked size hint at refactoring or optimization within the driver's codebase. Developers upgrading to 4.11.0 should review the changelog for comprehensive insights into bug fixes, new features, and any potential breaking changes to ensure seamless integration with their existing applications. These updates aim to provide a more robust, secure, and efficient MongoDB experience within Node.js environments.
All the vulnerabilities related to the version 4.11.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).