CVE-2019-16772: The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS)
CVE-2019-16772 is a low-severity flaw (CVSS 3.1) affecting serialize-to-js. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 oth
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.1 (Low) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.6% (top 49%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2019-12-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2019-16772?
serialize-to-js: upgrade to 3.0.1. Exact commands for each OS are on this page.
Is CVE-2019-16772 being exploited?
CVE-2019-16772 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2019-16772 affect?
CVE-2019-16772 affects serialize-to-js. Severity is low (CVSS 3.1). 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 envir
How urgent is CVE-2019-16772?
Priority 24/100. No elevated risk signals yet.
Software pages
Node.js vulnerabilities · npm packages vulnerabilities
Related CVEs
- CVE-2017-15871 HIGH 7.5 UPGRADE The deserialize function in serialize-to-js through 1.1.1 allows attackers to cause a denial of service via ve