Back
CVE-2021-23346Regular Expression Denial of Service (ReDoS)
- 4.8MediumCVSS base score
- 2.1%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By snyk
- 55 days later
· 55 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium4.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 |
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 2.1% · top 18% of all CVEs (17 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.8.
Affected products
html-parse-stringify
- affected unspecified – < 2.0.1
html-parse-stringify2
- affected < unspecified
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmhtml-parse-stringifyGHSA-545q-3fg6-48m7 (opens in a new tab)
- npmhtml-parse-stringify2GHSA-545q-3fg6-48m7 (opens in a new tab)
References
References6
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0605 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-545q-3fg6-48m7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-23346)Record last updated .