CVE-2019-16772
published low CVSS 3.1 · 3.1regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| commenthol | — | serialize-to-js< 3.0.1 to < 3.0.1 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| commenthol | serialize-to-js | < 3.0.1 to < 3.0.1 (affected · custom) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79 Cross-site Scripting (XSS)
References
2Provider assertions
2GitHub_M · cna
regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2f8f46c922f327175b66c75732b0a9e6ab6fa1a7c3bfb9309ebb72c76d5465d1
- Ingested
- 23 Sep 2026, 07:46:16 UTC
- Source record
- Official CVE record