MongoDB's 2.0.36 release, published on July 7, 2015, introduces notable changes compared to the previous stable version, 2.0.35, released on June 22, 2015. While both versions serve as a legacy driver emulation layer built upon mongodb-core, version 2.0.36 incorporates crucial updates for developers seeking stability and reliability.
A key difference lies in the dependencies. Version 2.0.36 introduces es6-promise version 2.1.1 as a new dependency. Furthermore, mongodb-core is updated from version 1.2.2 to 1.2.4. These dependency updates likely address bug fixes, performance improvements, or enhanced compatibility within the core MongoDB driver. The removal of readable-stream as direct dependency suggests an internal refactoring, possibly incorporating its functionalities directly or relying on mongodb-core's implementation leading to a smaller dependencies footprint.
For developers considering an upgrade, the core driver update is particularly relevant, as it directly impacts interaction with MongoDB databases. The inclusion of es6-promise indicates improved asynchronous operation handling, potentially leading to more predictable and efficient code execution. Developers should review the changelogs for both es6-promise 2.1.1 and mongodb-core 1.2.4 to understand the specific changes introduced and their implications for their applications. The other devDependencies are basically used for testing using different tools such as bson, gleak, jsdoc, rimraf, semver, integra, bluebird, optimist and mongodb-tools.
All the vulnerabilities related to the version 2.0.36 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.