Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Medium · 5.3 Node.js & npm CVE-2026-116582 GHSA-9wx9-5pv9-3349 CVE-2026-116583 GHSA-f86p-h4j2-7qgj

Two XSS Vulnerabilities Fixed in Seroval JavaScript Serialization Library

Seroval, a library used to stringify complex JavaScript values, contained two separate cross-site scripting issues: unescaped RegExp sources and a spoofable typed array constructor name. Both are fixed in updated releases.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Two cross-site scripting (XSS) vulnerabilities have been disclosed and fixed in Seroval, a JavaScript library used to serialize complex values beyond what JSON.stringify supports. Both issues allow attacker-controlled data to be written into serialized output in a way that can execute script when that output is embedded in an HTML page. The vulnerabilities are tracked as CVE-2026-116582 and CVE-2026-116583.

What happened

Two distinct vulnerabilities were identified in Seroval's serialization APIs. CVE-2026-116582 affects how Seroval serializes RegExp sources: a RegExp source containing a less-than character is not escaped for safe use inside an HTML script element, allowing the element to be terminated and arbitrary script to execute. CVE-2026-116583 affects how Seroval derives the constructor name of a typed array: this name is read from a property on the object that can be overwritten with an attacker-controlled 'own constructor' property, causing that attacker-controlled string to be written into the output as executable JavaScript.

Technical cause

Both issues stem from insufficient neutralization of untrusted input during generation of serialized output intended for embedding in web pages (CWE-79). For CVE-2026-116582, the serializer does not escape a less-than character present in a RegExp source before writing it into HTML-embedded output. For CVE-2026-116583, the serializer trusts a constructor-name property on a typed array instance without verifying it has not been replaced by an attacker-supplied own property, allowing that value to be emitted directly as executable code.

Who is affected

Applications are affected if they use Seroval's output APIs — serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON — and embed the resulting output in an HTML script element. For CVE-2026-116582, the application must build regular expression syntax from untrusted input and serialize it. For CVE-2026-116583, the application must copy untrusted properties onto a typed array before passing it to one of these serialization functions.

Affected versions

CVE-2026-116582 affects Seroval versions before 1.0.0, and versions from 1.5.5 up to (but not including) 1.6.10. It is fixed in version 1.0.0 and in version 1.6.10. CVE-2026-116583 affects Seroval versions from 1.6.0 up to (but not including) 1.6.11. It is fixed in version 1.6.11.

Fixes and mitigation

Both vulnerabilities have fixes available. For CVE-2026-116582, update to Seroval version 1.0.0 or 1.6.10, depending on the version line in use. For CVE-2026-116583, update to Seroval version 1.6.11.

Recommended action

Update Seroval to version 1.6.11, which includes fixes for both vulnerabilities, or to the applicable fixed version (1.0.0 or 1.6.10) if you cannot move to the latest release immediately. Review application code for places where untrusted input (regular expression patterns or properties copied onto typed arrays) flows into Seroval's serialization output before that output is embedded in HTML.

PatchBriefing score

5.3 / 10 · Medium

Official CVSS: 5.3

CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

EPSS 0.0043 (29 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

seroval < 1.0.0
vulnerable
seroval ≥ 0 < 1.0.0
vulnerable
≥ 1.0.0
patched
≥ 1.6.10
patched
seroval >= 1.6.0, < 1.6.11
vulnerable
seroval ≥ 1.6.0 < 1.6.11
vulnerable
≥ 1.6.11
patched

Reported fixes

Both vulnerabilities have fixes available. For CVE-2026-116582, update to Seroval version 1.0.0 or 1.6.10, depending on the version line in use. For CVE-2026-116583, update to Seroval version 1.6.11.

How this was built

6 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • NVD (NIST) database
  • GitHub Advisory Database database
  • GitHub Advisory Database database
  • OSV.dev database
  • OSV.dev database
Unified report
Two XSS Vulnerabilities Fixed in Seroval JavaScript Serialization Library
1 article · 6 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email