CVE-2021-23346
Regular Expression Denial of Service (ReDoS)
- State
- Published
- Severity
- 4.8 Medium
- Published
- Mar 4, 2021
- Updated
- Sep 16, 2024
- Reserved
- Jan 8, 2021
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.8 Medium | 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 | snyk |
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
html-parse-stringifyn/a |
|
html-parse-stringify2n/a |
|
References
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633
- https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2
- https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2
- https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.