Intel

AIKIDO-2026-29747

seroval is vulnerable to Denial of Service (DoS)

GHSA-v7hr-4gv3-67h6Published Oct 6, 2026
October 6, 2026

75

CVE Score

High

Denial of Service (DoS)

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.

How do I fix this?

Upgrade the seroval library to the patch version.

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.

Package

Versions

0.0.1 - 1.5.5

Fixed in 1.5.6

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea