CVE-2019-16769: Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)

Published Dec 5, 2019
·
Updated

A XSS flaw was found in npm-serialize-javascript. 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.

Other sources

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 Software

3 affected componentsFixes available
redhat/servicemesh-grafana<0:6.4.3-11.el8
0:6.4.3-11.el8
Verizon Serialize-javascript Node.js<2.1.1
redhat/npm-serialize-javascript<2.1.1
2.1.1

Event History

Dec 5, 2019
CVE Published
via MITRE·06:55 PM
Data Sourced
via MITRE·06:55 PM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-16769?

CVE-2019-16769 is classified as a high severity vulnerability due to the potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2019-16769?

To fix CVE-2019-16769, update the npm-serialize-javascript package to version 2.1.1 or later.

3

Which software is affected by CVE-2019-16769?

CVE-2019-16769 affects npm-serialize-javascript versions prior to 2.1.1 and servicemesh-grafana version 0:6.4.3-11.el8 and below.

4

What is the impact of CVE-2019-16769?

The impact of CVE-2019-16769 includes the possibility of executing malicious scripts in the context of the user's browser.

5

Is CVE-2019-16769 exploitable in a Node.js environment?

No, CVE-2019-16769 is not exploitable in a Node.js environment due to the secure handling of regular expressions in Node.js's implementation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203