Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113661 Overview
CVE-2026-113661 affects ApostropheCMS, an open-source Node.js content management system that bundles the sanitize-html library. The vulnerability exists in sanitize-html versions prior to 2.18.0. When administrators configure a non-default policy that permits <meta> refresh elements along with their http-equiv and content attributes, the sanitizer retains unsafe script or redirect destinations embedded in the refresh content value. Attackers can leverage this gap to deliver Cross-Site Scripting (XSS) payloads or forced redirects through content that appears sanitized. The issue is classified under [CWE-79] and is fixed in sanitize-html 2.18.0.
Critical Impact
Authenticated contributors can inject meta refresh payloads that execute scripts or redirect users to attacker-controlled destinations, breaking the trust boundary established by the sanitizer.
Affected Products
- ApostropheCMS deployments bundling sanitize-html prior to 2.18.0
- sanitize-html library versions below 2.18.0 with non-default meta element allowlists
- Downstream applications relying on the vulnerable sanitizer with permissive HTML policies
Discovery Timeline
- 2026-10-20 - CVE-2026-113661 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-113661
Vulnerability Analysis
The flaw sits in the sanitization logic for <meta http-equiv="refresh"> elements. When a configuration explicitly allows the meta tag and its http-equiv and content attributes, sanitize-html passes the content value through without validating the URL scheme or stripping script constructs. The content attribute of a refresh directive carries both a delay and a URL. Attackers can supply a javascript: scheme or a redirect to an attacker-controlled host inside this value. The sanitizer treats the attribute as data rather than parsing its sub-structure, which is the root defect.
Root Cause
The root cause is incomplete attribute-value inspection. sanitize-html validated the attribute name against the allowlist but did not decompose the content payload to enforce safe URL schemes. The sanitizer therefore honored unsafe destinations and inline script references that the embedded refresh directive placed inside the string.
Attack Vector
Exploitation requires authenticated access with privileges to submit HTML content, and user interaction to render the page. A contributor supplies a payload such as <meta http-equiv="refresh" content="0;url=javascript:..."> through a field processed by the vulnerable sanitizer. When another user loads the stored content, the browser honors the refresh directive, triggering script execution or navigation to a malicious endpoint. The scope changes from the sanitized document to the surrounding application context, enabling session abuse and phishing.
The commits that resolve the issue are referenced in the ApostropheCMS Commit Fix and the ApostropheCMS Commit Update. Representative hardening from the merge includes lifecycle changes in supporting modules:
methods(self) {
return {
scheduleCleanup() {
- setInterval(self.cleanup, 1000 * 60 * 60);
+ self.cleanupInterval = setInterval(self.cleanup, 1000 * 60 * 60);
},
async cleanup() {
Source: ApostropheCMS Commit Fix
Detection Methods for CVE-2026-113661
Indicators of Compromise
- Stored content containing <meta http-equiv="refresh" ...> tags where the content attribute includes javascript: or external hosts.
- Unexpected client-side redirects originating from CMS-rendered pages shortly after content edits by low-privilege contributors.
- Audit log entries showing HTML submissions by non-administrative users that include meta elements.
Detection Strategies
- Scan the content database for meta tags with http-equiv="refresh" and flag non-relative URLs or non-http(s) schemes in the content value.
- Inspect sanitize-html configuration objects for allowedTags that include meta and allowedAttributes that permit http-equiv or content.
- Validate the installed sanitize-html version across Node.js projects and alert on releases below 2.18.0.
Monitoring Recommendations
- Monitor outbound navigation and Content Security Policy (CSP) violation reports for unexpected redirect destinations from CMS-hosted pages.
- Track editor and contributor accounts that submit HTML blocks containing meta elements and route those submissions for review.
- Correlate web server access logs with reader sessions that terminate in rapid cross-origin redirects.
How to Mitigate CVE-2026-113661
Immediate Actions Required
- Upgrade sanitize-html to version 2.18.0 or later across all ApostropheCMS deployments and dependent Node.js services.
- Remove meta from allowedTags and remove http-equiv and content from allowedAttributes unless strictly required.
- Audit stored content for existing malicious meta refresh payloads and purge affected documents.
Patch Information
The fix is published in sanitize-html 2.18.0. Refer to the ApostropheCMS Release Tag and the GitHub Security Advisory GHSA-cv27-6wvh-8x7 for the authoritative advisory and remediation guidance.
Workarounds
- Restrict sanitize-html configuration to the default allowlist, which excludes meta elements entirely.
- Enforce a strict Content Security Policy that disallows inline navigation via javascript: URIs and restricts redirect destinations.
- Limit HTML authoring privileges to trusted roles until the library is upgraded.
# Configuration example
npm install sanitize-html@^2.18.0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

