CVE-2019-16772

Source
https://nvd.nist.gov/vuln/detail/CVE-2019-16772
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16772.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-16772
Aliases
Related
Published
2019-12-07T00:15:11Z
Modified
2025-01-15T01:39:06.099475Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/commenthol/serialize-to-js

Affected ranges

Type
GIT
Repo
https://github.com/commenthol/serialize-to-js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.5.0

v1.*

v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.2.0
v1.2.1
v1.2.2

v2.*

v2.0.0
v2.0.1

v3.*

v3.0.0