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

Medium 4.7 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-116582?

CVE-2026-116582 is a medium-severity vulnerability in lxsmnsyc seroval, published on 26 Oct 2026.

Official 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.

Weakness: CWE-79, CWE-116

Which versions are affected by CVE-2026-116582?

4 open source packages ship an affected version, including seroval.

PackageAffectedFixed in
seroval npmAll versions1.0.0
seroval npmAll versions1.0.0
seroval npmFrom 1.5.51.6.10
seroval npmFrom 1.5.51.6.10

How do I fix CVE-2026-116582?

Upgrade seroval to a fixed version for your release line: 1.0.0 or 1.6.10.

Is CVE-2026-116582 being exploited?

There is no known exploitation of CVE-2026-116582 in the wild and no public exploit code.

Sources

Also known as GHSA-9wx9-5pv9-3349.

Is CVE-2026-116582 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free