CVE-2026-113654: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in apostrophecms apostrophe
Description
ApostropheCMS versions prior to 4.33.0 are affected by a cross-site scripting (XSS) vulnerability due to improper sanitization of HTML content involving the noscript tag. This issue arises from the sanitize-html library versions before 2.18.0, where the non-default nonTextTags configuration including noscript can prematurely end discard regions, allowing potentially malicious content to survive sanitization and render in browsers. The vulnerability is fixed in sanitize-html version 2.18.0.
CVSS v4.0
Score 5.3medium
Affected software
apostrophecms
apostrophe
apostrophecms
sanitize-html
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
The vulnerability in ApostropheCMS stems from the sanitize-html library's handling of the noscript tag in versions prior to 2.18.0. When a non-default nonTextTags configuration includes noscript, the discard region can end early because htmlparser2 emits an implied ancestor close inside noscript. Browsers treat noscript content as raw text, but the parser does not model this mode, allowing content intended to be inert to survive sanitization and be rendered. This results in a cross-site scripting (CWE-79) vulnerability. The issue is resolved by upgrading sanitize-html to version 2.18.0 or later.
Potential Impact
An attacker could exploit this vulnerability to inject malicious scripts that bypass sanitization filters, potentially leading to cross-site scripting attacks. This could allow execution of arbitrary scripts in the context of the affected web application, impacting confidentiality and integrity of user interactions. The CVSS 4.0 score is 5.3 (medium severity), indicating a moderate risk with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
Upgrade sanitize-html to version 2.18.0 or later to address the improper sanitization of the noscript tag. Additionally, upgrade ApostropheCMS to version 4.33.0 or later where this fix is incorporated. No other specific mitigations are indicated. Patch status is confirmed by the vendor advisory indicating the fix in sanitize-html 2.18.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-20T14:27:46.641Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad79b8c2cdf04f65643a7b0
Added to database: 10/20/2026, 16:49:16 UTC
Last enriched: 10/20/2026, 17:03:49 UTC
Last updated: 10/20/2026, 19:06:08 UTC
Views: 8
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.