XSS in Commenthol Serialize-To-Js
CVE-2019-16772
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.006 (47.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 3.1 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L.
Affected products
- Commenthol Serialize-to-js — versions < 3.0.1
- Serialize-to-js_project Serialize-to-js
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2019-16772?
- CVE-2019-16772 is a low-severity vulnerability in Commenthol Serialize-To-Js, classified under Cross-site Scripting. CVSS score: 3.1/10. Published 2019-12-07.
- How severe is CVE-2019-16772?
- Low severity. CVSS v3 base score is 3.1 out of 10.