Serialization of objects with extreme depth can exceed the maximum call stack limit.
Mitigation:
Seroval introduces a depthLimit parameter in serialization/deserialization methods. An error will be thrown if the depth limit is reached.
{
"nvd_published_at": "2026-01-22T03:15:47Z",
"cwe_ids": [
"CWE-770"
],
"github_reviewed_at": "2026-01-22T18:02:22Z",
"severity": "HIGH",
"github_reviewed": true
}