MongoDB 1.4.0 represents an incremental update to the popular Node.js driver for MongoDB, building upon the foundation laid by version 1.3.23. Released on April 3, 2014, it followed the earlier version released on December 13, 2013. The core functionality remains consistent, offering developers a robust interface for interacting with MongoDB databases from their Node.js applications. Both versions share the same core dependencies, bson for handling BSON serialization and kerberos for authentication using Kerberos.
Notable is the update to version 0.2.7 of BSON in version 1.4.0, from 0.2.5 in the 1.3.23 version potentially introducing performance enhancements or bug fixes related to BSON encoding/decoding. Kerberos remains at version 0.0.3, suggesting no changes in authentication mechanisms between these releases. The development dependencies, vital for testing and documentation generation, are broadly consistent, including tools like dox, ejs, step, async, gleak, request, markdown, nodeunit, optimist, and uglify-js. integra is specified as "latest" in 1.3.23 while defined with a specific version 0.0.3 in 1.4.0, which signifies a change in the dependency. Developers should consult the MongoDB driver's changelog for a comprehensive breakdown of individual bug fixes, performance improvements, and new features introduced in 1.4.0. These adjustments are designed to provide a more stable, efficient, and feature-rich experience.
All the vulnerabilities related to the version 1.4.0 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.