Infinite looporg.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.
| |
Improper Handling of Length Parameter Inconsistencyorg.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.
| |
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.
| |
Deserialization of Untrusted Dataorg.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.
| |
Arbitrary Code Injectionorg.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.
| |