Skip to content
Heist/ feed
HighFix available

Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization

Type: advisorySource: OSV1 source record

# 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.

Announced Group revision 1
Original source ↗

GHSA-jp82-f5mq-hwhp

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-jp82-f5mq-hwhp

seroval

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
1.6.3

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.6.3"
          }
        ]
      }
    ],
    "package": {
      "name": "seroval",
      "purl": "pkg:npm/seroval",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-jp82-f5mq-hwhp/GHSA-jp82-f5mq-hwhp.json",
      "last_known_affected_version_range": "<= 1.6.2"
    }
  }
]
Related CVEs
CVE-2026-104845

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#85937 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement