CVE-2026-116582: Seroval: Script injection through RegExp sources in serialized output

Published Oct 26, 2026
·
Updated

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 Software

3 affected componentsFixes available
npm/seroval<1.0.0, >=1.5.5<1.6.10
npm/seroval<1.0.0
1.0.0
npm/seroval>=1.5.5<1.6.10
1.6.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/seroval to a version that resolves this vulnerability.

    Fixed in 1.0.0
  2. Upgrade

    Upgrade npm/seroval to a version that resolves this vulnerability.

    Fixed in 1.6.10
  3. Upgrade

    Upgrade Seroval to a version that resolves this vulnerability.

    Fixed in 1.6.10
  4. Compensating control

    Do not serialize a RegExp built from untrusted pattern syntax through serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON.

  5. Compensating control

    Reject regular-expression patterns containing '<' before they reach the serializer.

  6. Compensating control

    Send the RegExp source and flags as strings and build the RegExp on the client instead of serializing the RegExp.

Event History

Oct 26, 2026
CVE Published
via MITRE·08:46 PM
Data Sourced
via MITRE·08:46 PM
DescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203