All vulnerabilities
CVE-2026-104845GHSA-jp82-f5mq-hwhp

Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization

lxsmnsyc serovalnpmLibraries & packages
CVSS
7.5High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.43%Chance of exploitation activity in the next 30 days, higher than 36% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in1.6.3Fixed versionGitHub
Published2 Oct 2026Updated 6 Oct 2026CVE List

What fixes it

  • 1.6.3seroval, npmGitHubnpm install seroval@1.6.3

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Summary

deserializeTypedArray casts the source node to ArrayBuffer without checking it and never bounds the element count. Pass a plain object with a length property and it hits the array-like TypedArray constructor, allocating that many elements. The offset guard above it can't stop this: source.byteLength is undefined, so the comparison is always false.

The length is one integer in the JSON, so a tiny payload can name any allocation size, and it runs synchronously inside fromJSON, starving the event loop instead of just slowing one request. fromCrossJSON is the same.

Impact is unauthenticated CPU/memory exhaustion for any service deserializing untrusted Seroval JSON: same profile as the array-length and nested-depth DoS issues already fixed here. No confidentiality or integrity impact. DataView has the same unchecked cast but throws instead of allocating. A runtime instanceof ArrayBuffer check plus a size cap should fix it.

Text from GitHub Advisory Database

Affected versions 3

  • seroval, npm<= 1.6.2GitHub
  • serovalaffected: < 1.6.3CVE List
  • seroval, npmfrom first release, fixed in 1.6.3OSV

References 5