CVE-2026-44990
Received Received - Intake
Stored XSS in ApostropheCMS via sanitize-html Bypass

Publication date: 2026-06-12

Last updated on: 2026-06-12

Assigner: GitHub, Inc.

Description
ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Under the default configuration, versions of `sanitize-html` prior to 2.17.4 can turn attacker-controlled content inside a disallowed `xmp` element into live HTML or JavaScript. This is a sanitizer bypass in the default `disallowedTagsMode: 'discard'` path and can lead to stored XSS in applications that render sanitized output back to users. Version 2.17.4 patches the issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-12
Last Modified
2026-06-12
Generated
2026-06-13
AI Q&A
2026-06-13
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
sanitize-html sanitize-html to 2.17.4 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the sanitize-html library versions prior to 2.17.4. Under the default configuration, attacker-controlled content placed inside a disallowed <xmp> HTML element can bypass the sanitizer and be turned into live HTML or JavaScript. This means that malicious code can be injected and executed despite the sanitization process.

The issue is a sanitizer bypass in the default 'disallowedTagsMode: discard' setting, which normally removes disallowed tags but fails to do so correctly for the <xmp> element.

This vulnerability can lead to stored Cross-Site Scripting (XSS) attacks in applications that render the sanitized output back to users.

Impact Analysis

The vulnerability can allow attackers to inject and execute malicious scripts in the context of users viewing the affected application. This can lead to theft of sensitive information, session hijacking, defacement, or other malicious actions performed on behalf of the user.

Because it is a stored XSS vulnerability, the malicious code can persist in the application and affect multiple users over time.

The CVSS score of 9.3 indicates a high severity impact with network attack vector, low attack complexity, no privileges required, and user interaction needed, affecting confidentiality and integrity.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade the sanitize-html package to version 2.17.4 or later, where the issue is patched.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-44990. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart