Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)
Published Dec 5, 2019
5.4
MEDIUMCVSS 3.1
EPSS 0.80%
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
-
- Version < 2.1.1StatusaffectedConstraints<2.1.1
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Yahoo | Serialize-Javascript | n/a |
|
- < 2.1.1
No data.
OpenShift Service Mesh 1.1
servicemesh-grafana-0:6.4.3-11.el8
Fixed · RHSA-2020:2796
Red Hat OpenShift Container Platform 4.6
openshift4/ose-grafana:v4.6.0-202010061132.p0
Fixed · RHSA-2020:4298
Red Hat OpenShift Container Platform 4
openshift4/ose-prometheus
Fix deferred
Red Hat OpenShift Virtualization 1
kubevirt-web-ui-container
Will not fix
Red Hat Quay 3
nodejs-serialize-javascript
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| OpenShift Service Mesh 1.1 | servicemesh-grafana-0:6.4.3-11.el8 | Fixed | RHSA-2020:2796 |
| Red Hat OpenShift Container Platform 4.6 | openshift4/ose-grafana:v4.6.0-202010061132.p0 | Fixed | RHSA-2020:4298 |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-prometheus | Fix deferred | n/a |
| Red Hat OpenShift Virtualization 1 | kubevirt-web-ui-container | Will not fix | n/a |
| Red Hat Quay 3 | nodejs-serialize-javascript | Will not fix | n/a |
serialize-javascript
npm
Introduced 0 Fixed 2.1.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | serialize-javascript | 0 | 2.1.1 |
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)
- https://access.redhat.com/security/cve/CVE-2019-16769 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1848092 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0792 Advisory
- https://github.com/advisories/GHSA-h9rv-jmmf-4pgx Advisory
- https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-h9rv-jmmf-4pgx x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-16769
- https://www.cve.org/CVERecord?id=CVE-2019-16769
- https://www.npmjs.com/advisories/1426
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-16769 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1848092 | Issue Tracking | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0792 | Advisory | |
| https://github.com/advisories/GHSA-h9rv-jmmf-4pgx | Advisory | |
| https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-h9rv-jmmf-4pgx | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-16769 | ||
| https://www.cve.org/CVERecord?id=CVE-2019-16769 | ||
| https://www.npmjs.com/advisories/1426 |
Change history (0)
No recorded changes yet.