{"id":"CVE-2021-23346","published":"2021-03-04T16:55:21Z","modified":"2024-09-16T17:24:19Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02129,"percentile":0.82399,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633","tags":["x_refsource_MISC"]},{"url":"https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2","tags":["x_refsource_MISC"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2","tags":["x_refsource_MISC"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":16.48},{"name":"CVSS severity","points":3.36}]},"affectedVersions":[{"vendor":"n/a","product":"html-parse-stringify","versions":[">= unspecified, < 2.0.1"]},{"vendor":"n/a","product":"html-parse-stringify2","versions":["< unspecified"]}],"affected":[{"ecosystem":"npm","package":"html-parse-stringify","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-545q-3fg6-48m7"],"provenance":"source"},{"ecosystem":"npm","package":"html-parse-stringify2","vulnerableRanges":["<=2.0.1"],"patched":[],"from":["GHSA-545q-3fg6-48m7"],"provenance":"source"}],"summary":{"text":"The flaw is a Regular Expression Denial of Service (ReDoS) vulnerability in the html-parse-stringify package, affecting versions before 2.0.1 and all versions of the html-parse-stringify2 package, where one of the regular expressions used for parsing can be made to backtrack excessively.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:40Z"},"euvd":{"id":"EUVD-2021-0605","exploited":false,"provenance":"source"}}