Files
CVEs-PoC/2021/CVE-2021-23346.md
T
2025-09-29 21:09:30 +02:00

23 lines
1.1 KiB
Markdown

### [CVE-2021-23346](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23346)
![](https://img.shields.io/static/v1?label=Product&message=html-parse-stringify&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=html-parse-stringify2&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Regular%20Expression%20Denial%20of%20Service%20(ReDoS)&color=brightgreen)
### 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.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306
- https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307
#### Github
- https://github.com/engn33r/awesome-redos-security
- https://github.com/yetingli/PoCs