MongoDB Node.js driver version 3.0.7 is a minor release following 3.0.6, both being official drivers for connecting Node.js applications to MongoDB databases. Primarily, the core functionality remains consistent; both versions rely on the corresponding mongodb-core (3.0.6 and 3.0.7 respectively) for underlying database interactions. This highlights the incremental nature of the update.
Developers will find that the main difference between the two versions resides in bug fixes or small incremental changes within the core driver and its dependencies. Analyzing the changes of mongodb-core between these versions might reveal crucial fixes. Both versions share an identical suite of development dependencies, including tools for testing (chai, sinon, istanbul, mongodb-mock-server, mongodb-test-runner), linting (eslint, eslint-plugin-prettier, prettier), and utilities for asynchronous operations (co, bluebird). This signifies a consistent development and testing environment. The file count is slightly different (40 vs 39), hinting at minor adjustments in included files. Moreover, the unpacked size differs slightly, suggesting code or dependency size adjustments. Version 3.0.7 was released approximately a week and a half after 3.0.6, indicating a quick follow-up release, which reinforces the idea that it likely addresses issues identified in the previous version. Therefore, upgrading to 3.0.7 is generally recommended for stability and to benefit from any fixes it offers.
All the vulnerabilities related to the version 3.0.7 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.