CVE-2021-23346 json
Regular Expression Denial of Service (ReDoS)
published 2021-03-04 5 y ago modified 2026-06-17 4 mo ago also GHSA-545q-3fg6-48m7 , EUVD-2021-0605
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
This affects the package html-parse-stringify before 2.0.1; all versions of package html-parse-stringify2. Sending certain input could cause one of the regular expressions that is used for parsing to backtrack, freezing the process.
Patch / fix
- npm html-parse-stringify 2.0.1
- n/a html-parse-stringify 2.0.1
- github.com/HenrikJoreteg/html-parse-stringify@c7274a4 commit
- github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1 release
- snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306 advisory
- snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307 advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633 advisory
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-2021-23346 updated cvss 4.3
html-parse-stringify: Regular Expression DoS
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-ui-rhel8affected: no fix available
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8not 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
2.13% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:R |
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | html-parse-stringify | <2.0.1 |
2.0.1 |
| npm | html-parse-stringify2 | <=2.0.1 |
no fix listed |
Affected products
- n/a html-parse-stringify
- n/a html-parse-stringify2
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633
web, exploit, patch, third-party-advisory
-
github.com
/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2
web, broken-link, third-party-advisory
-
github.com
/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2
web, broken-link, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23346
advisory
-
github.com
/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1
web
Sources
- CVE List CVE-2021-23346
- GitHub Advisory GHSA-545q-3fg6-48m7
- NVD CVE-2021-23346
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.