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.
| |
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.
| |
Allocation of Resources Without Limits or Throttlingorg.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.
| |
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.
| |