Skip to content
OpenAdvisories
Medium · 4.7 CVE-2026-116582 EUVD-2026-110449GHSA-9wx9-5pv9-3349

Seroval: Script injection through RegExp sources in serialized output

Published Oct 26, 2026 · Updated Oct 30, 2026 · Assigned by GitHub_M

Description

Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.0.0 and from 1.5.5 until 1.6.10, the JavaScript-output APIs serialize a RegExp source containing a less-than character without the escaping needed for an HTML script element. An application is affected when it builds regular expression syntax from untrusted input, serializes that RegExp through serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON, and embeds the result in an HTML script element. The crafted source can terminate the element and execute script in the page received by another user. This issue is fixed in version 1.6.10.

Affected products

VendorProductAffectedFixed
lxsmnsyc seroval < 1.0.0, >= 1.5.5, < 1.6.10 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm seroval >= 1.5.5, < 1.6.10 1.6.10 GHSA-9wx9-5pv9-3349
npm seroval < 1.0.0 1.0.0 GHSA-9wx9-5pv9-3349

References