CVE-2026-63670: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in apostrophecms apostrophe
CVE-2026-63670 is a cross-site scripting (XSS) vulnerability in apostrophecms apostrophe affecting versions prior to 2.17.6. It arises when the 'textarea' or 'xmp' tags are included in the allowedTags configuration of the sanitize-html library. Due to a parser discrepancy and unescaped raw-text handling, malicious markup such as <img> tags with event handlers can bypass sanitization and execute in browsers. The default configuration is not affected. The vulnerability has medium severity with a CVSS score of 6.1.
AI Analysis
Technical Summary
This vulnerability involves a mutation-XSS or allowedTags bypass in sanitize-html used by apostrophecms apostrophe. When 'textarea' or 'xmp' tags are allowed, an input containing a literal '</textarea/>' (a solidus after the RCDATA end-tag name) is mis-tokenized by htmlparser2, causing the sanitizer to emit raw, unescaped content. This allows non-allowed markup like <img src=x onerror=...> to pass through live and unescaped, resulting in XSS. The issue bypasses previous fixes (CVE-2026-40186 and CVE-2026-44990) which addressed entity-encoding and default xmp handling but not this literal-solidus mis-tokenization. The default sanitize-html configuration without 'textarea' allowed is safe. The vulnerability affects versions before 2.17.6.
Potential Impact
An attacker who can submit content that is sanitized with a configuration allowing 'textarea' or 'xmp' tags can inject malicious scripts via non-allowed tags such as <img> with event handlers. This leads to stored or reflected cross-site scripting, potentially enabling cookie theft or session hijacking. The default configuration is not vulnerable, so exploitation requires specific user configuration. The CVSS 3.1 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction needed, and partial confidentiality and integrity impact.
Mitigation Recommendations
A fix is available in apostrophecms apostrophe version 2.17.6 and later. Users should upgrade to version 2.17.6 or above to remediate this vulnerability. The suggested fix involves routing 'textarea' and 'xmp' content through HTML escaping instead of raw passthrough, and/or correcting the htmlparser2 tokenization to conform to the WHATWG specification. Until upgrading, avoid allowing 'textarea' or 'xmp' tags in sanitize-html configurations to prevent exposure.
CVE-2026-63670: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in apostrophecms apostrophe
Description
CVE-2026-63670 is a cross-site scripting (XSS) vulnerability in apostrophecms apostrophe affecting versions prior to 2.17.6. It arises when the 'textarea' or 'xmp' tags are included in the allowedTags configuration of the sanitize-html library. Due to a parser discrepancy and unescaped raw-text handling, malicious markup such as <img> tags with event handlers can bypass sanitization and execute in browsers. The default configuration is not affected. The vulnerability has medium severity with a CVSS score of 6.1.
CVSS v3.1
Score 6.1medium
Affected software
apostrophecms
apostrophe
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves a mutation-XSS or allowedTags bypass in sanitize-html used by apostrophecms apostrophe. When 'textarea' or 'xmp' tags are allowed, an input containing a literal '</textarea/>' (a solidus after the RCDATA end-tag name) is mis-tokenized by htmlparser2, causing the sanitizer to emit raw, unescaped content. This allows non-allowed markup like <img src=x onerror=...> to pass through live and unescaped, resulting in XSS. The issue bypasses previous fixes (CVE-2026-40186 and CVE-2026-44990) which addressed entity-encoding and default xmp handling but not this literal-solidus mis-tokenization. The default sanitize-html configuration without 'textarea' allowed is safe. The vulnerability affects versions before 2.17.6.
Potential Impact
An attacker who can submit content that is sanitized with a configuration allowing 'textarea' or 'xmp' tags can inject malicious scripts via non-allowed tags such as <img> with event handlers. This leads to stored or reflected cross-site scripting, potentially enabling cookie theft or session hijacking. The default configuration is not vulnerable, so exploitation requires specific user configuration. The CVSS 3.1 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction needed, and partial confidentiality and integrity impact.
Mitigation Recommendations
A fix is available in apostrophecms apostrophe version 2.17.6 and later. Users should upgrade to version 2.17.6 or above to remediate this vulnerability. The suggested fix involves routing 'textarea' and 'xmp' content through HTML escaping instead of raw passthrough, and/or correcting the htmlparser2 tokenization to conform to the WHATWG specification. Until upgrading, avoid allowing 'textarea' or 'xmp' tags in sanitize-html configurations to prevent exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-17T14:47:08.032Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a836787bf8831d5397b9a3d
Added to database: 08/17/2026, 19:56:55 UTC
Last enriched: 09/12/2026, 00:33:23 UTC
Last updated: 10/02/2026, 02:46:05 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.