CVE-2026-113650 ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced)
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-113650?
CVE-2026-113650 is a medium-severity vulnerability in apostrophecms apostrophe, published on 20 Oct 2026.
Official 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.
Weakness: CWE-674
Which versions are affected by CVE-2026-113650?
2 open source packages ship an affected version, including sanitize-html.
| Package | Affected | Fixed in |
|---|---|---|
sanitize-html npm | From 2.18.0 | 2.18.1 |
sanitize-html npm | From 2.18.0 | 2.18.1 |
How do I fix CVE-2026-113650?
Upgrade sanitize-html to 2.18.1 or later.
Is CVE-2026-113650 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-113650 exists.
Sources
Also known as GHSA-c9rx-x947-fp3h.