Intel

AIKIDO-2026-29747

seroval is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-v7hr-4gv3-67h6 Published Yesterday

75

High Risk

This Affects:

JSseroval
0.0.1 - 1.5.5
Fixed in 1.5.6
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

seroval is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.5.5.

How to fix this

Upgrade the seroval library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform