Cross-site Scripting (XSS) Affecting nodejs-serialize-javascript package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.8% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-NODEJSSERIALIZEJAVASCRIPT-9894922
  • published29 Apr 2025
  • disclosed1 Jan 2019

Introduced: 1 Jan 2019

CVE-2019-16769  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 nodejs-serialize-javascript.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-serialize-javascript package and not the nodejs-serialize-javascript package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1