{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23346","id":"CVE-2021-23346","title":"Regular Expression Denial of Service (ReDoS)","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.","descriptionLong":"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.","published":"2021-03-04T16:55:21.677Z","updated":"2026-10-20T10:54:32.804648021Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":4.8,"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","rating":"medium","source":"snyk"},"metrics":[{"version":"3.1","score":4.8,"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","rating":"medium","source":"snyk"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"snyk.io"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["html-parse-stringify","html-parse-stringify2"],"affectedProducts":[{"vendor":"n/a","product":"html-parse-stringify","defaultStatus":null,"versions":[{"lessThan":"2.0.1","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]},{"vendor":"n/a","product":"html-parse-stringify2","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"html-parse-stringify","purl":"pkg:npm/html-parse-stringify","ranges":["<2.0.1"],"fixed":["2.0.1"],"advisory":"GHSA-545q-3fg6-48m7"},{"ecosystem":"npm","name":"html-parse-stringify2","purl":"pkg:npm/html-parse-stringify2","ranges":["<=2.0.1"],"fixed":[],"advisory":"GHSA-545q-3fg6-48m7"}],"cwes":["CWE-400"],"aliases":["GHSA-545q-3fg6-48m7"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2","tags":["x_refsource_MISC","x_transferred","Broken Link","Third Party Advisory","advisory","web"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2","tags":["x_refsource_MISC","x_transferred","Broken Link","Third Party Advisory","advisory","web"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23346","tags":["advisory"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02129,"epssPercentile":0.8232,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23346","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23346","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23346","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-545q-3fg6-48m7","ok":true,"note":"GHSA-545q-3fg6-48m7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23346","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}