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

Published Oct 20, 2026
·
Updated

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 Software

1 affected component
npm/sanitize-html=2.18.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade sanitize-html to a version that resolves this vulnerability.

    Fixed in 2.18.1

Event History

Oct 20, 2026
CVE Published
via MITRE·04:19 PM
Data Sourced
via MITRE·04:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected by this issue?

Applications using npm/sanitize-html version 2.18.0 are affected when they sanitize attacker-controlled HTML with the default behavior: iframe elements are not allowed and disallowedTagsMode is set to discard.

2

What does an attacker need to exploit it?

An attacker needs the ability to supply HTML that is passed to sanitize-html. No authentication or user interaction is required according to the supplied severity vector.

3

What is the practical impact?

Specially crafted nested discarded iframe content can trigger unbounded recursive sanitization and cause a stack overflow, resulting in a denial of service.

4

What should be done if the affected version is deployed?

Update sanitize-html from 2.18.0 to 2.18.1, which fixes the recursion issue. Until updating, avoid sanitizing untrusted HTML that can contain nested iframe fallback content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203