The npm package mongodb, a Node.js driver for MongoDB, saw a minor version update from 1.1.1 to 1.1.2 in August 2012. Both versions share the same core dependencies, relying on bson version 0.1.1 for BSON serialization and deserialization, a crucial component for interacting with MongoDB's data format. The development dependencies also remain identical, indicating a similar testing and build process across the two versions; tools used for documentation (dox, markdown), templating (ejs), asynchronous control flow (step, async), memory leak detection (gleak), GitHub integration (github3), unit testing (nodeunit), and JavaScript minification (uglify-js) are all untouched. This suggests the changes between 1.1.1 and 1.1.2 are likely bug fixes, performance improvements, or internal refactoring rather than significant API additions or deprecations.
The key difference lies in the release date, with version 1.1.2 being published on August 11, 2012, about two weeks after 1.1.1 (July 27, 2012). For developers, this implies that version 1.1.2 likely addresses any critical issues or small enhancements identified in the initial 1.1.1 release. While the provided data doesn't detail specific changes, upgrading from 1.1.1 to 1.1.2 is generally recommended to benefit from the latest fixes. Developers should consult the package's commit history or release notes on the GitHub repository ("http://github.com/mongodb/node-mongodb-native.git") for a comprehensive understanding of the changes included in version 1.1.2. As a robust and well-maintained driver, mongodb enables seamless interaction with MongoDB databases and is an essential tool for Node.js developers working with MongoDB.
All the vulnerabilities related to the version 1.1.2 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.