CVE-2026-113650 ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced)

Medium 5.3 Published Updated
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.

PackageAffectedFixed in
sanitize-html npmFrom 2.18.02.18.1
sanitize-html npmFrom 2.18.02.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.

Is CVE-2026-113650 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free