MongoDB Node.js driver sees a minor patch update from version 2.0.41 to 2.0.42. Both versions serve as a legacy driver emulation layer built upon the mongodb-core package, aimed at developers seeking a familiar interface when interacting with MongoDB databases. The core dependencies remain consistent between the two versions, each relying on es6-promise, mongodb-core, and readable-stream to provide essential functionalities such as promise support, low-level MongoDB protocol handling, and stream processing.
The development dependencies are similar, including tools for code generation (jsdoc), BSON handling (bson), leak detection (gleak), testing (integra), and version management (mongodb-version-manager). The mongodb-tools remains at ~1.0.
The update's significance likely lies in bug fixes, performance enhancements, or minor adjustments within the emulation layer. While the core APIs and dependencies remain stable, upgrading from 2.0.41 to 2.0.42 is advised primarily to leverage those subtle refinements.
The releaseDate distinguishes the versions, with 2.0.42 released on August 18, 2015, following 2.0.41 released days earlier on August 14, 2015, suggesting a quick fix or refinement addressed by the latter version. Developers should consult the MongoDB driver's changelog or release notes for detailed insights into the specific modifications introduced in version 2.0.42 to determine if the update addresses any particular pain points or requirements within their applications.
All the vulnerabilities related to the version 2.0.42 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.