regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| commenthol | serialize-to-js | < 3.0.1 to before 3.0.1 | 3.0.1 | Patch available | CNA |
| — | serialize-to-js (npm) | before 3.0.1 | 3.0.1 | Patch available | GHSA-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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:serialize-to-js_project:serialize-to-js:*:*:*:*:*:node.js:*:* | before 3.0.1 | Vulnerable | Serialize-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
- 2026-10-02 Threatist record created from CVE-2019-16772
- 2026-10-03 Alias added: GHSA-3fjq-93xj-3f3f
- 2026-10-19 EPSS moved to the 50th–90th percentile
References
Patch 1
Advisory 3
More commenthol vulnerabilities
- 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
- CVE-2019-16772 · CVE Program
- CVE-2019-16772 · NVD
- FIRST EPSS
- GHSA-3fjq-93xj-3f3f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences