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.
References5
- github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c…
- github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029…
- github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@…
- github.com/apostrophecms/apostrophe/security/advisories/GHSA-c9…
- github.com/apostrophecms/apostrophe/security/advisories/GHSA-c9…
Metrics
- CVSS 3.1
-
5.3
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - EPSS — exploit probability
- 0% percentile: 42 · as of 9 November 2026
- CWE
- CWE-674
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.