GHSA-jp82-f5mq-hwhp

Suggest an improvement
Source
https://github.com/advisories/GHSA-jp82-f5mq-hwhp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-jp82-f5mq-hwhp/GHSA-jp82-f5mq-hwhp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jp82-f5mq-hwhp
Aliases
Published
2026-10-05T23:40:40Z
Modified
2026-10-05T23:45:07Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-05T23:40:40Z",
    "nvd_published_at":  "2026-10-02T16:16:47Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / seroval

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.3

Database specific

last_known_affected_version_range
"<= 1.6.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-jp82-f5mq-hwhp/GHSA-jp82-f5mq-hwhp.json"