Read the docs
TI-2019-12553 Aliases CVE-2019-16772GHSA-3fjq-93xj-3f3f

regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js

Priority LOW 28CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash-escapes all forward slashes in regular expressions. If serialized data of regular expression objects are used in an environment other than Node.js, it is affected by this vulnerability.

Why it matters now

EPSS 0.00646 51st percentileScored 2026-11-07
Fix Fixed serialize-to-js (commenthol): 3.0.1serialize-to-js (npm): 3.0.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
commentholserialize-to-js< 3.0.1 to before 3.0.13.0.1Patch availableCNA
—serialize-to-js (npm)before 3.0.13.0.1Patch availableGHSA-3fjq-93xj-3f3f
  • serialize-to-js Vendorcommenthol Affected < 3.0.1 to before 3.0.1 Fixed in 3.0.1 Patch available CNA
  • serialize-to-js (npm) Vendor— Affected before 3.0.1 Fixed in 3.0.1 Patch available GHSA-3fjq-93xj-3f3f

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:serialize-to-js_project:serialize-to-js:*:*:*:*:*:node.js:*:*before 3.0.1VulnerableSerialize-to-js Project
  • cpe:2.3:a:serialize-to-js_project:serialize-to-js:*:*:*:*:*:node.js:*:* Versions before 3.0.1 Vulnerable ·Serialize-to-js Project

Remediation

  • Fix · CNA serialize-to-js (commenthol) Fixed in 3.0.1
  • Fix · GHSA-3fjq-93xj-3f3f serialize-to-js (npm) Fixed in 3.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2019-16772
  2. 2026-10-03 Alias added: GHSA-3fjq-93xj-3f3f
  3. 2026-10-19 EPSS moved to the 50th–90th percentile

References

  • TI-2026-34191 md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed) CVSS 3.1HIGH 7.2
  • TI-2023-11076 versionn Command Injection Vulnerability CVSS 3.1CRITICAL 9.8

Sources