CVE-2026-116582: Seroval JavaScript RegExp code injection in HTML script elements

CVE-2026-116582 · Severity: medium · CVSS 4.7 · Published 2026-10-26

Seroval is a JavaScript library that serializes complex values for transmission and storage. When an application embeds serialized regular expressions in HTML script elements, a crafted RegExp with a less-than character can break out of the script tag and execute arbitrary JavaScript in a victim's browser, potentially allowing account takeover or data theft.

Technologies: Lxsmnsyc Seroval, seroval (npm). Vendors: Lxsmnsyc, npm.

Quick answers

Is CVE-2026-116582 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-116582 being exploited in the wild.
How severe is CVE-2026-116582?
Medium severity, with a CVSS score of 4.7, published 26 October 2026.
Which products and versions are affected?
Lxsmnsyc Seroval before 1.0.0, and 1.5.5 to 1.6.9; seroval (npm) >= 1.5.5, < 1.6.10, SEMVER:introduced=1.5.5,fixed=1.6.10.
Is there a fix for CVE-2026-116582?
Yes. seroval (npm): upgrade to 1.6.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-116582 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-116582?
Check whether you run Lxsmnsyc Seroval or seroval (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • seroval (npm): upgrade to 1.6.10 or later
    npm install seroval@1.6.10

Technical details

Seroval's JavaScript output APIs fail to properly escape less-than characters in RegExp source code before embedding in HTML script elements, allowing script injection. The vulnerability affects applications that serialize untrusted RegExp patterns via serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON methods. An attacker can craft a RegExp source containing `</script>` or `<!--` sequences to terminate the script element and inject executable code.

Affected products

  • lxsmnsyc Seroval before 1.0.0, and 1.5.5 to 1.6.9

Identifiers

  • CVE-2026-116582
  • GHSA-9wx9-5pv9-3349

Timeline

  • 2026-10-26: disclosed
  • 2026-10-18: patched: fix committed before advisory publication date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.