Moderate severityOSV Advisory· Published Mar 4, 2021· Updated Sep 16, 2024
Regular Expression Denial of Service (ReDoS)
CVE-2021-23346
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
html-parse-stringifynpm | < 2.0.1 | 2.0.1 |
html-parse-stringify2npm | <= 2.0.1 | — |
Affected products
3- Range: v1.0.0, v1.0.1, v1.0.2, …
- ghsa-coords2 versions
< 2.0.1+ 1 more
- (no CPE)range: < 2.0.1
- (no CPE)range: <= 2.0.1
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-545q-3fg6-48m7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23346ghsaADVISORY
- github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2ghsax_refsource_MISCWEB
- github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12ghsax_refsource_MISCWEB
- github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1ghsaWEB
- github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.