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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T16:19:12.100Z
- Modified: 2026-10-28T14:16:56.610Z
- Also known as: GHSA-c9rx-x947-fp3h
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- apostrophecms apostrophe: < 4.34.0
- apostrophecms sanitize-html: >= 2.18.0, < 2.18.1
- sanitize-html (npm): from 2.18.0 before 2.18.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-c9rx-x947-fp3h> (exploit, web)
- <https://github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498> (web)
- <https://github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5ea> (web)
- <https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.18.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113650> (advisory)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2026-113650](https://www.cve.org/CVERecord?id=CVE-2026-113650), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-c9rx-x947-fp3h](https://github.com/advisories/GHSA-c9rx-x947-fp3h), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-113650](https://nvd.nist.gov/vuln/detail/CVE-2026-113650), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-113650 · Whole record: https://cve.day/CVE-2026-113650.json · Rebuilt by cve.day 2026-11-25T22:59:46.080Z
