Back

MEDIUM

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

Published Dec 5, 2019

Description

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.

Affected products

Remediation

Red Hat statement

In both OpenShift Container Platform (OCP) and OpenShift ServiceMesh (OSSM), the grafana and prometheus containers are behind OpenShift OAuth authentication. This restricts access to the vulnerable serialize-javascript library to authenticated users only, therefore the impact is low.

References (8)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Dec 5, 2019
Updated Aug 5, 2024
Reserved Sep 24, 2019
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date May 4, 2020
ENISA EUVD
Assigner GitHub_M
Published Dec 5, 2019
Updated Aug 5, 2024
Exploited since n/a
EUVD-2019-0792 GHSA-H9RV-JMMF-4PGX