CVE-2021-23346
published medium CVSS 3.1 · 4.8Regular Expression Denial of Service (ReDoS)
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | html-parse-stringify | unspecified to < 2.0.1 (affected · custom) | snyk · cna |
| n/a | html-parse-stringify2 | 0 to < unspecified (affected · custom) | snyk · cna |
Weaknesses
1- Regular Expression Denial of Service (ReDoS)
References
6- https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2
- https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12
- https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307
Provider assertions
2snyk · cna
Regular Expression Denial of Service (ReDoS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7c4333594a2fedf652afd407d3a691b44cc65aa6f266900ba91e7803e91eb111
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record