{"id":"GHSA-jp82-f5mq-hwhp","revision":"3f34601c4314468c93743e63d8cbd16e","records":[{"revision":"3f34601c4314468c93743e63d8cbd16e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jp82-f5mq-hwhp","aliases":["CVE-2026-104845"],"title":"Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization","description":"# Summary\n\ndeserializeTypedArray 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.\n\nThe 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.\n\nImpact 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.","state":0,"publishedAt":"2026-10-05T23:40:40+00:00","modifiedAt":"2026-10-05T23:45:07.4319235+00:00","affected":[{"ecosystem":"npm","name":"seroval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.6.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-jp82-f5mq-hwhp","https://nvd.nist.gov/vuln/detail/CVE-2026-104845","https://github.com/lxsmnsyc/seroval/commit/ac0163e420ac7dcbbefac4d069bcefad300a4851","https://github.com/lxsmnsyc/seroval/commit/e54a6f62784b9e48e3a5fa2ab4089ca69fb8996e","https://github.com/lxsmnsyc/seroval"],"sourceUrl":"https://github.com/advisories/GHSA-jp82-f5mq-hwhp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jp82-f5mq-hwhp","identifiers":["GHSA-jp82-f5mq-hwhp","CVE-2026-104845"]},"retained":false,"historicalAffected":[]}],"coverage":[]}