CVE-2019-16769CWE-79

Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)

Medium · published December 5, 2019

CVSS v3.1
4.2
EPSS
1%
Percentile
56.1
In the wild
Unconfirmed
What it is

The serialize-javascript npm package before version 2.1.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
4.2 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00800 · 56.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2019-12-05T18:55Z
EPSS history
Timeline
  • 05 DEC 18:55Z
    Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)
    cvelistv5