Live threats

All CVEs / Serialize-to-js Project

CVE-2019-16772Serialize-to-js Project Serialize-to-js

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.6%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Dec 7, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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 other than Node.js, it is affected by this vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Serialize-to-js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm serialize-to-js < 3.0.1 3.0.1 npm install serialize-to-js@3.0.1

Per OSV / GitHub Advisories (GHSA-3fjq-93xj-3f3f). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
serialize-to-js_projectserialize-to-js< 3.0.1

Official sources

References

Links published by the sources. Open them with care.