MongoDB Node.js driver version 3.6.6 offers a subtle refinement over its predecessor, version 3.6.5, primarily in its dependency management. While both versions share core dependencies like bl, bson, denque, saslprep, and safe-buffer, a notable difference lies in the replacement of require_optional in 3.6.5 with optional-require in 3.6.6. This seemingly minor change could influence how optional dependencies are handled during installation and runtime, potentially affecting users with specialized setups. Both versions leverage an extensive suite of development dependencies, including tools for testing (chai, mocha, sinon), linting (eslint), and code formatting (prettier), ensuring code quality and consistency. Although both retain saslprep as an optional dependency, indicating persistent support for SASLPrep, a string preparation algorithm outlined in RFC 4013, that is used to ensure that passwords and usernames are correctly constructed and compared.
The distribution metadata also reveals slight variations: version 3.6.6 contains one file more (149 vs 148) and possesses a slightly larger unpacked size (1517494 bytes vs 1510007 bytes) due to the modified dependency with optional-require. Developers upgrading should cautiously assess the impact of the optional-require change, particularly if they rely on specific behaviors of the previous require_optional dependency. Both versions are licensed under Apache-2.0, reiterating the project's commitment to open-source principles.
All the vulnerabilities related to the version 3.6.6 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).