Skip to content
Fencer Vulns
medium 4.2

CVE-2019-16769 json

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

published 2019-12-05 6 y ago modified 2026-09-10 1 mo ago also GHSA-h9rv-jmmf-4pgx , EUVD-2019-0792

cvss
4.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm serialize-javascript 2.1.1
  • yahoo serialize-javascript 2.1.1
  • servicemesh-grafana service mesh 1.1 6.4.3-11.el8
  • servicemesh-grafana-prometheus service mesh 1.1 6.4.3-11.el8

red hat advisories RHSA-2020:2796

  • mgr-osad Manager Server Module 4.0, Manager Proxy Module 4.0 4.0.11-3.9.2
  • spacecmd Manager Server Module 4.0, Manager Proxy Module 4.0 4.0.18-3.13.2
  • pxe-formula Manager Server Module 4.0 0.1.1580384994.6076a7e-3.11.2
  • susemanager Manager Server Module 4.0 4.0.22-3.20.3
  • spacewalk-web Manager Server Module 4.0, Manager Proxy Module 4.0 4.0.19-3.18.3
  • spacewalk-java Manager Server Module 4.0 4.0.31-3.23.1
  • redstone-xmlrpc Manager Server Module 4.0 1.1_20071120-0.11.3.2
  • spacewalk-admin Manager Server Module 4.0 4.0.9-3.6.2

suse advisories SUSE-SU-2020:0671-1SUSE-RU-2020:0671-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-16769 updated cvss 5.4

npm-serialize-javascript: XSS via unsafe characters in serialized regular expressions

  • Red Hat OpenShift Container Platform 4 openshift4/ose-prometheus-rhel9
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift Virtualization 1 kubevirt-web-ui-container Red Hat Quay 3 nodejs-serialize-javascript
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Service Mesh 1.1 servicemesh-grafana 6.4.3-11.el8, servicemesh-grafana-prometheus 6.4.3-11.el8
    fixed: vendor fix RHSA-2020:2796
  • Red Hat OpenShift Container Platform 4.6 openshift4/ose-grafana v4.6.0-202010061132.p0
    fixed: vendor fix RHSA-2020:4298
  • Red Hat OpenShift Container Platform 4.6 openshift4/ose-cli v4.6.0-202010080605.p0, openshift4/ose-ptp v4.6.0-202010200139.p0, openshift4/ose-etcd v4.6.0-202010061132.p0, openshift4/ose-tests v4.6.0-202010120952.p0, openshift4/ose-console v4.6.0-202010100121.p0, openshift4/ose-coredns v4.6.0-202010061132.p0, +79 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.2 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 3.5 AV:N/AC:M/Au:S/C:N/I:P/A:N
GitHub 3.1 4.2 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L

Affected packages

ecosystem package affected fixed in
npm serialize-javascript
<2.1.1
2.1.1

Affected products

  • yahoo serialize-javascript

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.