{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2019-16772","published":"2019-12-07T00:15:11.090000Z","last_modified":"2026-06-17T02:22:46.280000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:serialize-to-js_project:serialize-to-js:*:*:*:*:*:node.js:*:*","part":"a","vendor":"serialize-to-js_project","product":"serialize-to-js","version_end_excluding":"3.0.1"}],"cpes_truncated":false,"vendors":["serialize-to-js_project"],"products":["serialize-to-js_project/serialize-to-js"],"epss":{"score":0.00646,"percentile":0.45634,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-3fjq-93xj-3f3f","ecosystem":"npm","name":"serialize-to-js","purl":"pkg:npm/serialize-to-js","ranges":[{"introduced":"0","fixed":"3.0.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2019-16772/","html_en":"/en/cve/CVE-2019-16772/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-16772","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-16772"},"untrusted":{"vendor_name":"Serialize-to-js Project","product_name":"Serialize-to-js","desc_en":"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.","affected":[{"untrusted_vendor":"commenthol","untrusted_product":"serialize-to-js","versions":[]}],"references":[{"url":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f","tags":["Third Party Advisory"]}]}}