CVE-2019-16772CWE-79

regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js

Low · published December 6, 2019

CVSS v3.1
3.1
EPSS
1%
Percentile
50.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.1 · LOW
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00646 · 50.3th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2019-12-06T23:25Z
EPSS history
Timeline
  • 06 DEC 23:25Z
    regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js
    cvelistv5