Description
ApostropheCMS is an open-source Node.js content management system. In sanitize-html 2.18.0, when an 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.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| Provided by | CNA |
Weaknesses
- CWE-674 — CWE-674: Uncontrolled Recursion
Affected products
| Vendor | Product | Versions |
|---|---|---|
| apostrophecms | apostrophe | < 4.34.0 [affected] |
| apostrophecms | sanitize-html | >= 2.18.0, < 2.18.1 [affected] |
References
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-c9rx-x947-fp3h (x_refsource_CONFIRM)
- https://github.com/apostrophecms/apostrophe/commit/06e4b377f3c360f9e89c32dccd7e505ad5ddf498 (x_refsource_MISC)
- https://github.com/apostrophecms/apostrophe/commit/40b989b1a9dd23d30029b8ce7668634265cfe5ea (x_refsource_MISC)
- https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.18.1 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.