{"id":"CVE-2026-116581","aliases":["CVE-2026-116581","GHSA-97r2-qh9m-474h"],"related":[],"kind":"vulnerability","state":"published","title":"Seroval: fromJSON deserializer trusts sequence doneAt (unauthenticated event-loop DoS)","summary":"Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.6.8, fromJSON and fromCrossJSON do not validate a sequence node's done index. A crafted done index can create an iterator that never finishes when application code consumes it to completion. An unauthenticated request to a service that deserializes untrusted input can therefore block the event loop, exhaust process memory, or make the service unavailable. This issue is fixed in version 1.6.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.6.8, fromJSON and fromCrossJSON do not validate a sequence node's done index. A crafted done index can create an iterator that never finishes when application code consumes it to completion. An unauthenticated request to a service that deserializes untrusted input can therefore block the event loop, exhaust process memory, or make the service unavailable. This issue is fixed in version 1.6.8.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`fromJSON` and `fromCrossJSON` used two node fields without checking them.\n\n- An array node's element list was not checked to be an array. A small payload could set the length the decoder looped over. This part is also tracked in GHSA-wp97-x4hv-qvhp.\n- A sequence node's done index was not checked. A crafted value produced an iterator that never finished.\n\n### Impact\n\nA service that passes untrusted input to `fromJSON` or `fromCrossJSON` can be made unavailable by an unauthenticated request.\n\n- The array case blocks the thread while the decoder runs.\n- The sequence case makes any code that reads the resulting iterator to the end run forever.\n\n### Patches\n\nFixed in `seroval@1.6.8`.\n\n- Element lists must be arrays.\n- A sequence node's throw and done indices must be integers from -1 up to the last element index.\n\nInvalid input throws `SerovalMalformedNodeError`.\n\n### Workarounds\n\nNone. Upgrade to 1.6.8.","format":"markdown","source":"ghsa"}],"published":"2026-10-26T20:41:52.905Z","modified":"2026-10-31T02:17:33.007Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-835","CWE-1284"],"affected":[{"ranges":[{"version":"< 1.6.8","status":"affected"}],"vendor":"lxsmnsyc","product":"seroval","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.6.8"}],"ecosystem":"npm","package":"seroval","purl":"pkg:npm/seroval","source":"ghsa"}],"references":[{"url":"https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-97r2-qh9m-474h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lxsmnsyc/seroval/commit/e176f9267e59ddd6c9de89cc9fe85c5b37a5b728","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116581","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lxsmnsyc/seroval/commit/cdcee3e3bc384ee844360844f8ea98fd2b275d69","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lxsmnsyc/seroval","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-31T01:49:19.184Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116581","url":"https://www.cve.org/CVERecord?id=CVE-2026-116581","licence":"CVE Terms of Use","modified":"2026-10-31T01:49:33.208Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-97r2-qh9m-474h","url":"https://github.com/advisories/GHSA-97r2-qh9m-474h","licence":"CC-BY-4.0","modified":"2026-10-28T21:30:06.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116581","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116581","licence":"Public domain","modified":"2026-10-31T02:17:33.007Z"}],"updatedAt":"2026-11-25T22:59:47.273Z","epss":{"score":0.00544,"percentile":0.47054,"date":"2026-12-01T12:00:22.000Z"}}