regular expressions Cross-Site Scripting (XSS) vulnerability in serialize-to-js
Published Dec 6, 2019
6.1
MEDIUMCVSS 3.1
EPSS 0.65%
Description
The serialize-to-js NPM package before version 3.0.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 < 3.0.1StatusaffectedConstraints<3.0.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 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Commenthol | Serialize-to-JS | n/a |
|
- < 3.0.1
No data.
No Red Hat product state for this CVE.
serialize-to-js
npm
Introduced 0 Fixed 3.0.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | serialize-to-js | 0 | 3.0.1 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.65% (0.00646) | 49.17th | v5 (v2026.06.15) |
| Sep 20, 2026 | 0.65% (0.00646) | 49.52th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.07% (0.00066) | 29.72th | v3 (v2023.03.01) |
| Jun 11, 2024 | 0.07% (0.00066) | 29.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.07% (0.00066) | 27.14th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Mar 31, 2022 | 2.56% (0.02561) | 62.63th | v2 (v2022.01.01) |
| Jan 6, 2022 | 2.74% (0.02742) | 62.72th | v1 |
| Jan 5, 2022 | 0.62% (0.00624) | 46.35th | v5 (v2026.06.15) |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (5)
- https://github.com/advisories/GHSA-3fjq-93xj-3f3f Advisory
- https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3 x_refsource_MISCPatchThird Party Advisory
- https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-16772
- https://www.npmjs.com/advisories/1429
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-3fjq-93xj-3f3f | Advisory | |
| https://github.com/commenthol/serialize-to-js/commit/181d7d583ae5293cd47cc99b14ad13352875f3e3 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/commenthol/serialize-to-js/security/advisories/GHSA-3fjq-93xj-3f3f | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-16772 | ||
| https://www.npmjs.com/advisories/1429 |
Change history (0)
No recorded changes yet.