CVE-2021-23346
MEDIUM 5.3CVSS 3.1html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS)
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.
- Published
- 4 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-545q-3fg6-48m7
- Sources
- NVDJSONOSV GHSA-545q-3fg6-48m7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | html-parse-stringify_project | html-parse-stringifycpe:2.3:a:html-parse-stringify_project:html-parse-stringify:*:*:*:*:*:node.js:*:* |
< 2.0.1 | 2.0.1 |
| OSV | npm | html-parse-stringify | < 2.0.1 | 2.0.1 |
| OSV | npm | html-parse-stringify2 | <= 2.0.1 |
References
- https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2 · Broken Link, Third Party Advisory, WEB
- https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12 · Patch, Third Party Advisory, WEB
- https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2 · Broken Link, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23346 · ADVISORY
- https://github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 4 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Mar 2021)