seroval is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
seroval's async serializer parseAsync recurses through nested values for serializeAsync and toJSONAsync without the depthLimit check already enforced on the sync parsing path. Passing deeply nested or externally supplied data to serializeAsync or toJSONAsync drives recursion until the call stack is exhausted, crashing the process instead of raising a seroval error. The fix applies depthLimit inside parseAsync and throws SerovalDepthLimitError once the limit is reached.
Upgrade the seroval library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you pass externally controlled nested data to serializeAsync or toJSONAsync.
0.0.1 - 1.5.5
Fixed in 1.5.6seroval is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.5.5.
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.