CVE-2026-24006: Seroval Denial of Service via Deeply Nested Objects
Summary
CVE-2026-24006: Seroval affected by Denial of Service via Deeply Nested Objects. Affects seroval versions < 1.4.1. Fixed in 1.4.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Seroval is a serialization library for JavaScript that allows developers to convert complex data structures into a format that can be easily stored or transmitted. It is widely used in applications that require efficient data handling. However, it is vulnerable to a Denial of Service (DoS) attack when handling deeply nested objects, which can lead to application crashes or unresponsiveness.
Vulnerability Detail
The vulnerability arises from the serialization of objects with extreme depth, which can exceed the maximum call stack limit in JavaScript. This can cause the application to crash or become unresponsive, leading to a Denial of Service. The issue is particularly concerning for applications that process user-generated data, as malicious users could exploit this vulnerability by sending deeply nested objects.
How To Fix
Latest published version: 1.7.0 as of 22 Oct 2026
npm install seroval@1.7.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.4.1
This is the first release that contains the fix.
npm install seroval@1.4.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If you cannot update the package immediately, consider implementing a manual check for object depth before serialization. For example, you can create a function to limit the depth of objects before passing them to Seroval for serialization.
Conclusion
The vulnerability identified as CVE-2026-24006 in the Seroval package poses a significant risk of Denial of Service due to deeply nested objects. It is crucial for developers to update to the patched version 1.4.1 or implement workarounds to ensure the stability and security of their applications.
See every vulnerability recorded for seroval →
FAQ
The CVSS score of this vulnerability is 7.5, indicating a high severity level.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.
If left unaddressed, this vulnerability can lead to Denial of Service attacks, causing your application to crash or become unresponsive when processing deeply nested objects.
Yes, you should upgrade to version 1.4.1 or later to mitigate this vulnerability.
Yes, any application using Seroval versions prior to 1.4.1 that processes deeply nested objects is at risk of this vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for seroval.