sanitize-html denial of service in iframe content sanitization
apostrophecms apostrophe · apostrophecms sanitize-html
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sanitize-html npm |
|
|
Original description
ApostropheCMS is an open-source Node.js content management system. In sanitize-html 2.18.0, when an <iframe> is not allowed and disallowedTagsMode is 'discard' (the defaults), its raw-text content is re-sanitized by a recursive call to sanitizeHtml(text, options). The recursion has no bound and starts each nested call with a fresh state. This vulnerability is fixed in 2.18.1.
From the CVE record · GitHub_M