{"id":"CVE-2019-16769","published":"2019-12-05T18:55:15Z","modified":"2024-08-05T01:24:47Z","title":"Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)","vendor":"yahoo","product":"serialize-javascript","tier":"tail","description":{"text":"The serialize-javascript npm package before version 2.1.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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.008,"percentile":0.57476,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-h9rv-jmmf-4pgx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":11.5},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"yahoo","affectedVersions":[{"vendor":"yahoo","product":"serialize-javascript","versions":[">= < 2.1.1, < 2.1.1"]}],"affected":[{"ecosystem":"npm","package":"serialize-javascript","vulnerableRanges":["<2.1.1"],"patched":["2.1.1"],"from":["GHSA-h9rv-jmmf-4pgx"],"provenance":"source"}],"summary":{"text":"The serialize-javascript npm package by yahoo, before version 2.1.1, fails to properly neutralise unsafe characters in serialized regular expressions, creating a cross-site scripting flaw. The issue does not affect Node.js environments, but it does affect serialized regular expression data consumed in other JavaScript environments, where an attacker with network access and low privileges could inject script, requiring a high-complexity attack and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:40Z"},"euvd":{"id":"EUVD-2019-0792","exploited":false,"provenance":"source"}}