org.mvnpm:seroval@1.6.2

  • 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)
    • H
    Improper Handling of Length Parameter Inconsistency

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Improper Handling of Length Parameter Inconsistency via the fromJSON/fromCrossJSON deserialization path in deserializer.ts, where a node's element list is not validated to be a real array before use. An attacker can supply a payload containing an array-like object (e.g. {"length": 1000000000} or {"length": "Infinity"}) in place of a genuine element list for arrays, object/record properties, Set, Map, StreamConstructor, or Sequence nodes. Because the length property drives allocation and iteration with no matching data on the wire, a tiny payload forces unbounded memory allocation and work, crashing the process.

    How to fix Improper Handling of Length Parameter Inconsistency?

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

    [1.4.1,1.6.8)
    • L
    Cross-site Scripting (XSS)

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the serializeRegExp function in serializer.ts when serializing a RegExp whose source contains a < character. The function emits a RegExp literal directly into the output, allowing a sequence such as </script> or <!-- to appear verbatim in the serialized output and break out of the enclosing <script> element, enabling script injection in the consuming page. An attacker who can influence the RegExp value being serialized can inject arbitrary HTML or JavaScript into the page.

    How to fix Cross-site Scripting (XSS)?

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

    [1.5.5,1.6.11)
    • 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)
    • M
    Arbitrary Code Injection

    org.mvnpm:seroval is a Stringify JS values

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the typed array serialization path in createTypedArrayNode and createBigIntTypedArrayNode, where the serializer uses value.constructor.name to write the constructor name after new in the generated output. An attacker who can supply a typed array with an own constructor property set to an object whose name is arbitrary code can inject that code into the serialized output, which is subsequently executed when deserialized.

    How to fix Arbitrary Code Injection?

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

    [1.6.0,1.6.11)
    • 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)