---
id: "CVE-2026-116581"
kind: "vulnerability"
aliases: ["CVE-2026-116581"]
title: "Seroval: crafted input creates endless iterator, hanging services that deserialize it"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["javascript", "node.js", "package", "self-hosted"]
not_affected_if: ["no-untrusted-deserialization", "seroval-not-installed"]
published_at: "2026-10-26T21:18:15+00:00"
first_seen_at: "2026-10-26T21:20:31+00:00"
updated_at: "2026-10-26T21:21:09+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116581", "first_seen_at": "2026-10-26T21:20:31+00:00"}]
---

# Seroval: crafted input creates endless iterator, hanging services that deserialize it

Seroval is a JavaScript library that serializes and deserializes values beyond what JSON.stringify supports. Before 1.6.8, fromJSON and fromCrossJSON did not check a sequence node's done index, so crafted input can create an iterator that never finishes, blocking the event loop or exhausting memory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `npm ls seroval` to see which installed versions of seroval are present.
- Check whether application code calls fromJSON or fromCrossJSON on untrusted input.

## Fix

- Upgrade seroval to `1.6.8` or later.

## Timeline

- 2026-10-26T21:20:31+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116581

## From the sources

Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.6.8, fromJSON and fromCrossJSON do not validate a sequence node's done index. A crafted done index can create an iterator that never finishes when application code consumes it to completion. An unauthenticated request to a service that deserializes untrusted input can therefore block the event loop, exhaust process memory, or make the service unavailable. This issue is fixed in version 1.6.8.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
