Skip to main content
EPSS 0.3%top 77%

CVE-2026-63670: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in apostrophecms apostrophe

0
Medium
Published: 09/03/2026 (09/03/2026, 20:07:16 UTC)
Source: CVE Database V5
Vendor/Project: apostrophecms
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

apostrophecms

apostrophe

Affected versions
<2.17.6
apostrophecms/apostrophe
pkg:npm/apostrophecms/apostrophe
Affected versions
<2.17.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 00:33:23 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses