seroval is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
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.
Upgrade the seroval library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.0 - 1.6.2
Fixed in 1.6.3seroval is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.6.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.