CVE-2019-16769
MEDIUM 5.4CVSS 3.1Cross-Site Scripting in serialize-javascript
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.
- Published
- 5 Dec 2019
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-h9rv-jmmf-4pgx
- Sources
- NVDJSONOSV GHSA-h9rv-jmmf-4pgxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | verizon | serialize-javascriptcpe:2.3:a:verizon:serialize-javascript:*:*:*:*:*:node.js:*:* |
< 2.1.1 | 2.1.1 |
| OSV | npm | serialize-javascript | < 2.1.1 | 2.1.1 |
References
- https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-h9rv-jmmf-4pgx · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-16769 · ADVISORY
- https://github.com/advisories/GHSA-h9rv-jmmf-4pgx · ADVISORY
- https://www.npmjs.com/advisories/1426 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 5 Dec 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Dec 2019)