Telejson is a library designed to efficiently "teleport" complex data structures from one place to another, particularly useful in JavaScript environments where data serialization and transfer are common. Version 5.0.1 is a minor update following version 5.0.0, both sharing the same core purpose and functionalities. The primary changes between the two versions appear to be minor fixes or adjustments, evident in the slight difference in unpackedSize within the dist section (20617 bytes in 5.0.1 vs. 20634 bytes in 5.0.0). These adjustments don't impact dependencies, dev dependencies, or other configuration such as license, repository, and description, which remain identical in both versions.
For developers considering using Telejson, the key benefit is its ability to handle rich data types, including symbols, regular expressions, and functions, alongside standard JavaScript objects, which enables complex data transfers. Both versions rely on notable dependencies such as Lodash, known for its utility functions, and Memoizerific, designed to memoize functions for performance improvement. Developers who are already using version 5.0.0 should consider upgrading to 5.0.1 mainly to benefit from possible minor bug fixes and improvements. The consistent dependency structure suggests a stable API and similar behavior between the two versions, minimizing the risk of breaking changes during the update.
All the vulnerabilities related to the version 5.0.1 of the package
min-document vulnerable to prototype pollution
A vulnerability exists in the 'min-document' package prior to version 2.19.0, stemming from improper handling of namespace operations in the removeAttributeNS method. By processing malicious input involving the proto property, an attacker can manipulate the prototype chain of JavaScript objects, leading to denial of service or arbitrary code execution. This issue arises from insufficient validation of attribute namespace removal operations, allowing unintended modification of critical object prototypes. The vulnerability remains unaddressed in the latest available version.