{"id":"CVE-2021-23346","aliases":["CVE-2021-23346","GHSA-545q-3fg6-48m7"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete html-parse-stringify versiones anteriores a 2.0.1;&#xa0;todas las versiones del paquete html-parse-stringify2.&#xa0;Enviando determinada entrada podría causar que una de las expresiones regulares que son usadas para analizar el retroceso, congele el proceso","source":"nvd"}],"published":"2021-03-04T16:55:21.677Z","modified":"2026-06-17T03:38:35.853Z","severity":{"scorer":"snyk","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.0.1","status":"affected"}],"product":"html-parse-stringify","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"html-parse-stringify2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"npm","package":"html-parse-stringify","purl":"pkg:npm/html-parse-stringify","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.0.1"}],"ecosystem":"npm","package":"html-parse-stringify2","purl":"pkg:npm/html-parse-stringify2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.1"}],"vendor":"html-parse-stringify_project","product":"html-parse-stringify","cpe":"cpe:2.3:a:html-parse-stringify_project:html-parse-stringify:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2","tags":["broken-link","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2","tags":["broken-link","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23346","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1","tags":["web"],"sources":["ghsa"]}],"credits":["Yeting Li"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23346","url":"https://www.cve.org/CVERecord?id=CVE-2021-23346","licence":"CVE Terms of Use","modified":"2024-09-16T17:24:19.050Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-545q-3fg6-48m7","url":"https://github.com/advisories/GHSA-545q-3fg6-48m7","licence":"CC-BY-4.0","modified":"2025-01-14T08:56:53.391Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23346","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23346","licence":"Public domain","modified":"2026-06-17T03:38:35.853Z"}],"updatedAt":"2026-11-25T22:58:00.138Z","epss":{"score":0.02155,"percentile":0.82688,"date":"2026-12-01T12:00:22.000Z"}}