{"id":"CVE-2026-116580","aliases":["CVE-2026-116580","GHSA-7rv5-mrxv-xcr9"],"related":[],"kind":"vulnerability","state":"published","title":"Seroval: Deserialization invokes attacker-chosen callables: AsyncIteratorFactoryInstance calls source.on(listener) without type check","summary":"Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.6.8, fromJSON rebuilds an AsyncIteratorFactoryInstance by calling source.on(listener) without requiring source to be a genuine internal stream. With untrusted Seroval input and an application plugin that returns a callable value or an object exposing an on method, a crafted node can reuse an identifier so the deserializer invokes the plugin-produced value. This is an incomplete-fix variant of CVE-2026-59940. The resulting confidentiality, integrity, or availability impact depends on the behavior exposed by the application plugin. 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 rebuilds an AsyncIteratorFactoryInstance by calling source.on(listener) without requiring source to be a genuine internal stream. With untrusted Seroval input and an application plugin that returns a callable value or an object exposing an on method, a crafted node can reuse an identifier so the deserializer invokes the plugin-produced value. This is an incomplete-fix variant of CVE-2026-59940. The resulting confidentiality, integrity, or availability impact depends on the behavior exposed by the application plugin. This issue is fixed in version 1.6.8.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen `fromJSON` rebuilt an async iterator, it called `on()` on the iterator's source without checking that the source was a seroval stream. A crafted payload could pick another value as the source, such as a function returned by an application plugin. The deserializer then called that value's `on` method.\n\nThis is a variant of GHSA-mv8w-475r-vwqw. That fix covered the promise and stream control nodes but not the async iterator node.\n\n### Impact\n\nAn application that passes untrusted input to `fromJSON` with plugins that return callable values can have those callables invoked during deserialization. What this allows depends on what the plugin's values do.\n\n### Affected versions\n\n- Versions up to 1.6.3 accept any value as the source.\n- 1.6.4 rejects the reported payload.\n- 1.6.5 to 1.6.7 check the source by node type, which a payload can get around by reusing a node id.\n- All versions up to 1.6.7 should be treated as affected.\n\n### Patches\n\nFixed in `seroval@1.6.8`. Streams and sequences are now internal class instances. The deserializer checks the source value with `instanceof`, so plain data and plugin values are rejected no matter which node id they use.\n\n### Workarounds\n\nAvoid plugins whose `deserialize` returns functions or objects with an `on` method when decoding untrusted input. Upgrading to 1.6.8 is recommended.","format":"markdown","source":"ghsa"}],"published":"2026-10-26T20:35:49.975Z","modified":"2026-11-02T19:17:56.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"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:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-502"],"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-7rv5-mrxv-xcr9","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lxsmnsyc/seroval/commit/3edc78b495ea0d6bd498143e5b3e56996607c5f2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lxsmnsyc/seroval/commit/50926b3ee198fb757e6ce3aa70efeed38d931c8d","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-116580","tags":["advisory"],"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-11-02T18:11:31.112Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116580","url":"https://www.cve.org/CVERecord?id=CVE-2026-116580","licence":"CVE Terms of Use","modified":"2026-11-02T18:11:49.130Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7rv5-mrxv-xcr9","url":"https://github.com/advisories/GHSA-7rv5-mrxv-xcr9","licence":"CC-BY-4.0","modified":"2026-10-28T21:30:03.899Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116580","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116580","licence":"Public domain","modified":"2026-11-02T19:17:56.160Z"}],"updatedAt":"2026-11-25T22:59:47.272Z","epss":{"score":0.0046,"percentile":0.4159,"date":"2026-12-01T12:00:22.000Z"}}