MongoDB version 4.3.0 represents a notable, albeit incremental, update over its predecessor, version 4.2.2, offering refinements and additions that developers should be aware of. Both versions share the same core purpose: providing a robust and official Node.js driver for interacting with MongoDB databases. The dependency lists reveal a crucial difference: version 4.3.0 includes an explicit dependency on the "socks" package, resolving the need for SOCKS proxy support, this is missing from version 4.2.2. Additionally, there has been a minor version bump in the bson dependency, from ^4.6.0 to ^4.6.1, suggesting potential bug fixes or minor feature enhancements within the BSON serialization/deserialization library. The development dependencies, crucial for contributing to and testing the library, remain largely consistent between the two versions, reflecting a stable development environment. Differences between the unpacked sizes of the packaged .tgz files (2769750 vs 2737004) might indicate more and newer internal components, assets, or documentation updates. The release date also highlights the recency of version 4.3.0, making it the generally preferred choice for new projects as it incorporates the latest refinements and bug fixes provided by the MongoDB team. It would be a recommended update for existing projects using version 4.2.2 because of bug fixes and improvements.
All the vulnerabilities related to the version 4.3.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).