p PatchFirst

CVE-2026-113650

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 0.4% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • apostrophe

    Versions
    • < 4.34.0: Affected

    No fix published

  • sanitize-html

    Versions
    • >= 2.18.0, < 2.18.1: Affected

    No fix published

  • sanitize-html npm

    Affected ranges
    • SEMVER: ≥ 2.18.0, < 2.18.1

    Update to 2.18.1

Original sources

Check your server →