org.mvnpm:seroval@1.2.0

  • latest version

    1.7.7

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    22 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:seroval 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
    Infinite loop

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Infinite loop via deserializeSequence in deserializer.ts when processing a sequence node whose done or throw index is non-numeric or out of range. An attacker can supply a malformed serialized payload with an invalid done index, causing the deserialized iterator to never terminate and hanging the process indefinitely.

    How to fix Infinite loop?

    Upgrade org.mvnpm:seroval to version 1.6.8 or higher.

    [,1.6.8)
    • M
    Deserialization of Untrusted Data

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the sequence serialization logic in packages/seroval/src/core/sequence.ts, where identity of internal Sequence objects was checked by the presence of a __SEROVAL_SEQUENCE__ key rather than by instanceof. An attacker can supply a plain object with a __SEROVAL_SEQUENCE__ key and controlled t and d fields, causing the serializer to treat it as a trusted internal value and embed arbitrary code into the serialized output.

    How to fix Deserialization of Untrusted Data?

    Upgrade org.mvnpm:seroval to version 1.6.8 or higher.

    [,1.6.8)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via createTypedArrayNode, createBigIntTypedArrayNode, and createDataViewNode in base-primitives.ts, and the corresponding deserialization paths in deserializer.ts, when processing typed arrays, BigInt typed arrays, or DataView objects whose length exceeds the internal base64 cap. An attacker can supply an oversized typed array or DataView to trigger unbounded memory allocation or processing, crashing the process.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:seroval to version 1.6.3 or higher.

    [,1.6.3)
    • C
    Access of Resource Using Incompatible Type ('Type Confusion')

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the deserializePromise and deserializePromiseFulfill functions in deserializer.ts, where a thenable object (an object with a then property that is a function) can be passed as the resolved or rejected value of a deserialized Promise node. Because the deserializer previously did not check whether the deserialized value was thenable before passing it to the deferred resolver, an attacker supplying a malicious serialized payload can cause the Promise resolution to follow the attacker-controlled thenable, enabling prototype pollution of the JavaScript runtime environment. This allows full compromise of object prototypes, leading to arbitrary property injection across all objects in the process.

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

    Upgrade org.mvnpm:seroval to version 1.6.2 or higher.

    [1.0.0,1.6.2)
    • C
    Access of Resource Using Incompatible Type ('Type Confusion')

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') in the fromJSON process. An attacker can achieve unintended server-side invocation and potentially execute arbitrary code by supplying specially crafted JSON input that manipulates the deserialization reference table when plugins are enabled. This is only exploitable if untrusted Seroval JSON is deserialized with plugins enabled and downstream frameworks register plugins that return callable wrappers.

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

    Upgrade org.mvnpm:seroval to version 1.5.3 or higher.

    [,1.5.3)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling when serializing objects with very large depth. An attacker can cause resource exhaustion and disrupt service availability by submitting objects with excessive nesting depth.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:seroval to version 1.4.2 or higher.

    [,1.4.2)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the encoded array lengths serialization process. An attacker can cause excessive processing time by overriding encoded array lengths with extremely large values.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:seroval to version 1.4.2 or higher.

    [,1.4.2)
    • C
    Prototype Pollution

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Prototype Pollution in the JSON deserialization process. An attacker can manipulate the prototype of objects by supplying malicious object keys during deserialization.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:seroval to version 1.4.2 or higher.

    [,1.4.2)
    • H
    Regular Expression Denial of Service (ReDoS)

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the RegExp serialization process. An attacker can cause the exhaustion of JavaScript runtime memory or trigger catastrophic backtracking by supplying extremely large strings for deserialization.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.mvnpm:seroval to version 1.4.2 or higher.

    [,1.4.2)
    • H
    Deserialization of Untrusted Data

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Deserialization of Untrusted Data in the fromJSON and fromCrossJSON functions during JSON deserialization. An attacker can execute arbitrary JavaScript code by crafting serialized data that exploits improper input handling and error deserialization, potentially overriding constant values and gaining indirect access to unsafe evaluation.

    Note: This is only exploitable if the attacker has partial knowledge of how the serialized data is processed during runtime.

    How to fix Deserialization of Untrusted Data?

    Upgrade org.mvnpm:seroval to version 1.4.2 or higher.

    [,1.4.2)