---
id: "CVE-2026-116583"
kind: "vulnerability"
aliases: ["CVE-2026-116583"]
title: "Seroval: typed array constructor name injects executable JavaScript into serialized output"
severity: "medium"
cvss: 5.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["frontend", "javascript", "node", "package", "seroval"]
not_affected_if: ["default-config", "trusted-input-only"]
published_at: "2026-10-26T21:18:16+00:00"
first_seen_at: "2026-10-26T21:20:32+00:00"
updated_at: "2026-10-26T21:21:14+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116583", "first_seen_at": "2026-10-26T21:20:32+00:00"}]
---

# Seroval: typed array constructor name injects executable JavaScript into serialized output

Seroval versions 1.6.0 through 1.6.10 build JavaScript output using a constructor name read from a typed array property that can be overridden. If application code copies untrusted properties onto a typed array and serializes it, an attacker's name is written as executable JavaScript that runs in the receiving page.

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

## How to check

- Run `npm ls seroval` in the project and look for any version from `1.6.0` through `1.6.10`.
- Search application code for places that copy untrusted or user-supplied properties onto typed arrays before calling `serialize`, `crossSerialize`, `Serializer` or `compileJSON`.

## Fix

- Upgrade `seroval` to `1.6.11` or later.
- Until upgraded, do not pass typed arrays carrying untrusted properties to the serialization APIs.

## Timeline

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

## From the sources

Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. From 1.6.0 until 1.6.11, the JavaScript-output APIs derive a typed array's constructor name from a property on the value that can be replaced by an own constructor property. When application code copies untrusted properties onto a typed array and then passes it to serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON, the attacker-controlled name is written as executable JavaScript and can run in the page receiving the output. This issue is fixed in version 1.6.11.

---

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