4.8medium
Regular Expression Denial of Service (ReDoS)
- Severity
- 4.8medium CVSS:3.1 by snyk
- Exploit likelihood
- 2.15% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-545q-3fg6-48m7
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| html-parse-stringify | from unspecified before 2.0.1 | CVE List |
| html-parse-stringify2 | before unspecified | CVE List |
| html-parse-stringify (npm) | before 2.0.1 | GitHub Advisory Database |
| html-parse-stringify2 (npm) | up to 2.0.1 | GitHub Advisory Database |
| html-parse-stringify_project html-parse-stringify | before 2.0.1 | NVD |
All scores
| snyk | 4.8medium CVSS:3.1 | 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 |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Esto afecta al paquete html-parse-stringify versiones anteriores a 2.0.1; todas las versiones del paquete html-parse-stringify2. Enviando determinada entrada podría causar que una de las expresiones regulares que son usadas para analizar el retroceso, congele el proceso
References
| 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://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633 | exploit, 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://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://nvd.nist.gov/vuln/detail/CVE-2021-23346 | advisory | |
| https://github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23346 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-545q-3fg6-48m7 changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23346 changed 2026-06-17 | Public domain |