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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-10-26T20:46:46.069Z
- Modified: 2026-10-30T16:17:40.887Z
- Also known as: GHSA-9wx9-5pv9-3349
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- lxsmnsyc seroval: < 1.0.0; >= 1.5.5, < 1.6.10
- seroval (npm): from 1.5.5 before 1.6.10; before 1.0.0

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349> (web)
- <https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6> (web)
- <https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116582> (advisory)
- <https://github.com/lxsmnsyc/seroval> (package)

## Sources

- CVE List: [CVE-2026-116582](https://www.cve.org/CVERecord?id=CVE-2026-116582), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-9wx9-5pv9-3349](https://github.com/advisories/GHSA-9wx9-5pv9-3349), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-116582](https://nvd.nist.gov/vuln/detail/CVE-2026-116582), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-116582 · Whole record: https://cve.day/CVE-2026-116582.json · Rebuilt by cve.day 2026-11-25T22:59:47.273Z
