The serialize-javascript npm package before version 2.1.1 is vulnerable to Cross-site Scripting (XSS). It…
Historical advisory recorded 24 Oct 2026 15:17:33 UTC. Read the latest advisory.
nvd · CVE-2019-16769
PublishedThe 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2019-16769
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-79
Original publisher date fields
published: 2019-12-05T19:15:15.180
lastModified: 2026-06-17T02:22:45.870
1 source CPE criteria · context only
- cpe:2.3:a:verizon:serialize-javascript:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON