{"id":"GHSA-3fjq-93xj-3f3f","summary":"Cross-Site Scripting in serialize-to-js","details":"Versions of `serialize-to-js` prior to 3.0.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize serialized regular expressions. This vulnerability does not affect Node.js applications.\n\n\n## Recommendation\n\nUpgrade to version 3.0.1 or later.","aliases":["CVE-2019-16772"],"modified":"2026-07-08T06:00:32.942609251Z","published":"2019-12-06T23:20:26Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2020-06-16T20:55:02Z","nvd_published_at":null,"cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16772"},{"type":"WEB","url":"https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3fjq-93xj-3f3f"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1429"}],"affected":[{"package":{"name":"serialize-to-js","ecosystem":"npm","purl":"pkg:npm/serialize-to-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-3fjq-93xj-3f3f/GHSA-3fjq-93xj-3f3f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"}]}