# CVE-2021-23346: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 4.8 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.15%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-03-04T16:55:21.677Z
- Modified: 2026-06-17T03:38:35.853Z
- Also known as: GHSA-545q-3fg6-48m7
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- html-parse-stringify: from unspecified before 2.0.1
- html-parse-stringify2: before unspecified
- html-parse-stringify (npm): before 2.0.1
- html-parse-stringify2 (npm): up to 2.0.1
- html-parse-stringify_project html-parse-stringify: before 2.0.1

## Every score

- snyk: CVSS: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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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

- CVE List: [CVE-2021-23346](https://www.cve.org/CVERecord?id=CVE-2021-23346), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-545q-3fg6-48m7](https://github.com/advisories/GHSA-545q-3fg6-48m7), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23346](https://nvd.nist.gov/vuln/detail/CVE-2021-23346), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23346 · Whole record: https://cve.day/CVE-2021-23346.json · Rebuilt by cve.day 2026-11-25T22:58:00.138Z
