MongoDB version 1.4.5 introduces notable changes compared to its predecessor, version 1.4.4, making it an important update for Node.js developers utilizing the MongoDB driver. One key difference lies in the dependencies. Version 1.4.5 adds readable-stream as both a regular dependency and an optional dependency. While bson and kerberos dependencies remain consistent across both versions, the addition of readable-stream suggests improved handling of streaming data, potentially enhancing performance and efficiency when dealing with large datasets or continuous data flows.
Furthermore, the nodeunit dependency sees a downgrade from version 0.7.4 in 1.4.4 to version 0.7.3 in 1.4.5. While seemingly minor, this could indicate adjustments or fixes related to the unit testing framework used during development. Developers relying on nodeunit for their own MongoDB-related tests might want to investigate the specifics of this change.
Both versions share a common set of development dependencies including tools for documentation (dox, markdown), templating (ejs), asynchronous operations (async, step), memory leak detection (gleak), integration testing (integra), HTTP requests (request), command-line argument parsing (optimist) and code minification (uglify-js).
The release date of 1.4.5 being May 21, 2014, subsequent to 1.4.4's release on May 13, 2014, highlights that it is a follow up version. Developers should assess the impact of the readable-stream addition and the nodeunit downgrade on their existing applications when considering the update to version 1.4.5.
All the vulnerabilities related to the version 1.4.5 of the package
Denial of Service in mongodb
Versions of mongodb
prior to 3.1.13 are vulnerable to Denial of Service. The package fails to properly catch an exception when a collection name is invalid and the DB does not exist, crashing the application.
Upgrade to version 3.1.13 or later.
Deserialization of Untrusted Data in bson
Incorrect parsing of certain JSON input may result in js-bson not correctly serializing BSON. This may cause unexpected application behaviour including data disclosure.
Deserialization of Untrusted Data in bson
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. The package will ignore an unknown value for an object's _bsontype, leading to cases where an object is serialized as a document rather than the intended BSON type.
DLL Injection in kerberos
Version of kerberos
prior to 1.0.0 are vulnerable to DLL Injection. The package loads DLLs without specifying a full path. This may allow attackers to create a file with the same name in a folder that precedes the intended file in the DLL path search. Doing so would allow attackers to execute arbitrary code in the machine.
Upgrade to version 1.0.0 or later.