CVE-2019-16769Verizon Serialize-javascript
Medium 5.4
Follow: this CVE · Verizon · Verizon Serialize-javascript We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 58
- Auth required
- Yes
- Published
- Dec 5, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Serialize-javascript.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | serialize-javascript |
< 2.1.1 |
2.1.1 |
npm install serialize-javascript@2.1.1 |
Per OSV / GitHub Advisories (GHSA-h9rv-jmmf-4pgx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| verizon | serialize-javascript | < 2.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory