MongoDB driver version 4.1.4 is a minor release over 4.1.3, offering refinements and updates beneficial for Node.js developers utilizing MongoDB. The primary difference lies in dependency updates in both the dependencies and devDependencies sections. Specifically, bson advances from version ^4.5.2 to ^4.5.4, and mongodb-connection-string-url leaps from ^2.0.0 to ^2.1.0. These dependency upgrades likely incorporate bug fixes, performance improvements, and potentially new features within those respective modules related to Binary JSON handling and MongoDB connection string parsing.
In the development dependencies, a suite of tools received updates, including development, testing and documentation libraries. Key updates include typedoc (0.21.9 to 0.22.5), typescript (4.3.5 to 4.4.3), along with several @types/* packages to align with newer TypeScript versions. The update from @typescript-eslint/parser and @typescript-eslint/eslint-plugin from version 4.31.0 to 4.33.0 indicates improvements in TypeScript linting and parsing capabilities. Developers leveraging TypeScript will find these upgrades valuable for enhanced code quality and maintainability. The release also introduces "source-map-support": "^0.5.20" which will help with debugging. Furthermore, there are some changes in documentation tool dependencies like the dropping of "eslint-plugin-jsdoc" and the introduction of "@microsoft/api-extractor":"^7.18.14" related to API documentation. Overall, version 4.1.4 provides a more refined development experience.
All the vulnerabilities related to the version 4.1.4 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).