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

Weakness classification (CWE)

References

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.