---
id: CVE-2026-116582
title: 'Seroval: Script injection through RegExp sources in serialized output'
summary: >-
  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-tha…
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
  - CWE-116
vendor: lxsmnsyc
product: seroval
affected:
  - seroval < 1.0.0
  - 'seroval >= 1.5.5, < 1.6.10'
published: '2026-10-26'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T20:46:46.069Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116582'
references:
  - url: >-
      https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349
    label: >-
      https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349
  - url: >-
      https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6
    label: >-
      https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6
  - url: 'https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10'
    label: 'https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10'
tags:
  - cve.org
epss: 0.00188
epssPercentile: 0.08295
ingestedAt: '2026-10-27T16:11:59.112Z'
---

## Overview

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

- `seroval < 1.0.0`
- `seroval >= 1.5.5, < 1.6.10`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
