Seroval: Deserialization invokes attacker-chosen callables: AsyncIteratorFactoryInstance calls source.on(listener) without type check
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
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.
Text from CVE List
Affected versions 1
- serovalaffected: < 1.6.8CVE List
References 4
- github.com/lxsmnsyc/seroval/commit/3edc78b495ea0d6bd498143e5b3e56996607c5f2Fixvia CVE List
- github.com/lxsmnsyc/seroval/commit/50926b3ee198fb757e6ce3aa70efeed38d931c8dFixvia CVE List
- github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.8Fixvia CVE List
- github.com/lxsmnsyc/seroval/security/advisories/GHSA-7rv5-mrxv-xcr9Advisoryvia CVE List