Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2019-16772: The serialize-to-js NPM package before version 3.0.1 is vulnerable to Cross-site Scripting (XSS)

24
Routine
LOW 3.1UPGRADE

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 score3.1 (Low)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededLow
User interactionNone
EPSS exploit chance0.6% (top 49%)
CISA exploited listNo
WeaknessCWE-79
Published2019-12-07
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: serialize-to-js project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

serialize-to-js project serialize-to-js UPGRADE
Affected: < 3.0.1
Fixed in: 3.0.1
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls serialize-to-js
2. UPGRADE to 3.0.1
npm install serialize-to-js@">=3.0.1"
Verify at the official source NVD · CVE Program · Report a problem with this page
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.