seroval is vulnerable to Denial of Service (DoS)
75
High Risk
seroval's deserializeTypedArray casts the source node to ArrayBuffer without verifying it and never bounds the element count carried in the payload. A plain object with only a length property is passed to the TypedArray constructor, which synchronously allocates that many elements inside fromJSON and fromCrossJSON, blocking the event loop on a tiny payload. The offset guard above it does not stop this because source.byteLength is undefined on the forged source, so that comparison is always false. The fix caps the declared length against a fixed maximum before construction.
You are affected if you are using a version that falls within the vulnerable range.
seroval is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.6.2.
Upgrade the seroval library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.