MongoDB Node.js driver version 4.4.0 introduces several updates compared to the previous stable version 4.3.1. Both versions share the same core dependencies like bson, socks, denque, saslprep, and mongodb-connection-string-url, ensuring continued compatibility with essential functionalities. However, the development dependencies showcase some notable upgrades, impacting the developer experience and tooling.
Specifically, chai has been updated from version 4.3.4 to 4.3.6, mocha from 9.1.4 to 9.2.0, and sinon sees a significant jump from 12.0.1 to 13.0.0. eslint has progressed from 8.7.0 to 8.8.0, and typescript moved from 4.5.4 to 4.5.5. Furthermore, @types/node was bumped from 17.0.10 to 17.0.13, @types/mocha from 9.0.0 to 9.1.0, and @types/sinon went from 10.0.6 to 10.0.9. @typescript-eslint/parser and @typescript-eslint/eslint-plugin are updated from 5.10.0 to 5.10.1. These changes likely incorporate bug fixes, performance improvements, and new features within these development tools, leading to a smoother and more efficient development workflow. The upgrade in testing frameworks and type definitions will give developers a better support while writing tests while the upgrade in the eslinter and typescript parser are expected to augment the type checking and find errors earlier.
All the vulnerabilities related to the version 4.4.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).