org.mvnpm:devalue@5.9.2

  • latest version

    6.0.3

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:devalue package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Access of Resource Using Incompatible Type ('Type Confusion')

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the fromViewInfo parse operation in src/operations.js, where a custom reviver can replace an ArrayBuffer backing buffer with a number or array-like value. When a typed array constructor receives such a value, it allocates storage unrelated to the size of the serialized input, allowing an attacker to trigger unbounded memory allocation and crash the process.

    How to fix Access of Resource Using Incompatible Type ('Type Confusion')?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [,5.9.4)
    • M
    Prototype Pollution

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Prototype Pollution via the unflatten function in src/parse.js, where object keys parsed from untrusted input are not validated to be strings before being set on the target object. An attacker who controls the serialized input can supply a non-string key (such as a numeric or symbol-like value) that bypasses the existing __proto__ guard, potentially polluting the prototype chain of the resulting object and influencing downstream application behavior.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [,5.9.4)
    • L
    Memory Allocation with Excessive Size Value

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the uneval function in src/uneval.js when processing a sparse array with a very large index (e.g., arr[1000000] = 1). The function previously used Array.prototype.forEach, which iterates over every logical slot up to the array's length, causing excessive CPU and memory consumption proportional to the declared array length rather than the number of populated elements. An attacker who can supply a serializable value containing a sparse array can trigger this condition to exhaust server resources.

    How to fix Memory Allocation with Excessive Size Value?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [5.5.0,5.9.4)
    • H
    Uncaught Exception

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Uncaught Exception via unhandled Promise rejections in stringifyAsync within src/stringify.js. When a Promise passed to stringifyAsync rejects before it is awaited in the sequential traversal loop, the rejection goes unhandled, causing an UnhandledPromiseRejection event that crashes the Node.js process.

    How to fix Uncaught Exception?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [5.8.0,5.9.4)
    • H
    Improper Handling of Highly Compressed Data (Data Amplification)

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the uneval function when serializing a value containing many repeated long strings or bigint primitives. Each repeated primitive is re-stringified on every reference rather than being deduplicated, causing the output size to grow quadratically with the number of repetitions. An attacker who can supply input to a uneval call can trigger excessive CPU and memory consumption, crashing the process.

    How to fix Improper Handling of Highly Compressed Data (Data Amplification)?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [,5.9.4)
    • M
    Inefficient Algorithmic Complexity

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the uneval function in src/uneval.js when processing a sparse array with a very large index (e.g., arr[1000000] = 1). The function previously used forEach to iterate over the logical length of dictionary-backed sparse arrays, causing it to allocate and scan every slot up to the array's length rather than only the populated indices. An attacker who can supply a sparse array value to uneval can trigger excessive memory allocation and CPU consumption, crashing the process.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [,5.9.4)
    • H
    Sensitive Information in Resource Not Removed Before Reuse

    org.mvnpm:devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Sensitive Information in Resource Not Removed Before Reuse via the viewInfo operation in src/operations.js and the typed-array serialization path in src/uneval.js, when a Node.js Buffer is serialized. Node Buffer instances are backed by a shared memory pool that may contain unrelated, sensitive data beyond the visible bytes of the buffer. Because the library previously serialized the full backing ArrayBuffer rather than only the bytes visible through the Buffer view, an attacker who can influence what gets serialized (for example, during SSR rendering) can cause the full pool contents - including data from other allocations - to be included in the serialized output and exposed to the client.

    How to fix Sensitive Information in Resource Not Removed Before Reuse?

    Upgrade org.mvnpm:devalue to version 5.9.4 or higher.

    [5.5.0,5.9.4)