MongoDB version 1.3.21 represents a minor update over the preceding stable version, 1.3.20, both iterations of the popular Node.js driver for MongoDB. While the core functionality and dependency structure remain largely consistent – evidenced by shared dependencies on bson and kerberos, plus identical development dependencies used for testing and documentation – the key distinction lies in their release dates. Version 1.3.21 was published on December 11, 2013, at 16:07:34 UTC, a little over an hour after the 1.3.20 publication at 14:44:26 UTC on the same day.
For developers, this indicates a likely bug fix or minor enhancement pushed rapidly following the release of 1.3.20. Given the minimal time difference, it's probable the changes are related to an immediately identified issue or edge case. While the changelog details are not provided here, users of the 1.3 branch should strongly consider upgrading to 1.3.21 to ensure they benefit from any such stability improvements. Both versions offer a robust interface for interacting with MongoDB databases from Node.js, supporting core operations and advanced features such as indexing, authentication, and replication. However, opting for the slightly newer build reduces the risk of encountering early-release problems. The shared dependencies indicate that the core data serialization (bson) and authentication mechanisms (kerberos) haven't changed between releases.
All the vulnerabilities related to the version 1.3.21 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.