Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-113650 EUVD-2026-105176GHSA-c9rx-x947-fp3h

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

Published Oct 20, 2026 · Updated Oct 28, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
apostrophecms apostrophe < 4.34.0 —
apostrophecms sanitize-html >= 2.18.0, < 2.18.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling saf 1.7.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm sanitize-html >= 2.18.0, < 2.18.1 2.18.1 GHSA-c9rx-x947-fp3h

References