CVE-2026-44990

Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`

Published Jun 12, 2026 CVSS 3.1 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

sanitize-html, the popular HTML sanitizer used by ApostropheCMS, has a configuration flaw that allows attacker‑controlled text inside an 'xmp' element to bypass the default sanitization path. With the disallowedTagsMode set to 'discard', the sanitizer incorrectly treats the raw content of the xmp element as executable HTML or JavaScript, enabling stored XSS. This flaw is classified as CWE‑79 and can cause client‑side code execution, credential theft, session hijacking, and other malicious actions when users view the affected pages.

Affected Systems

The vulnerability affects all releases of sanitize‑html older than 2.17.4 that rely on the default configuration. Applications built on ApostropheCMS that include these earlier versions are at risk until a patched version is deployed.

Risk and Exploitability

The CVSS score of 9.3 marks this bug as critical, though the EPSS score of less than 1% suggests that widespread exploitation is currently unlikely. The flaw is not listed in CISA’s KEV catalog, but it can be exploited via stored XSS in any content that traverses the sanitizer with default settings. Attackers would need to inject malicious payloads into input fields that are subsequently sanitized and displayed back to users, taking advantage of the xmp passthrough.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the sanitize-html library to version 2.17.4 or later, which includes the patch for the xmp passthrough bug.
  • If an upgrade is not immediately possible, modify the sanitization configuration to set disallowedTagsMode to 'enforce' and explicitly remove or escape the <xmp> tag from input before sanitization.
  • Apply an additional layer of input validation to strip disallowed tags such as <xmp> from content, and ensure that applications rendering sanitized content do not reintroduce scripting contexts.

Generated by OpenCVE AI on June 12, 2026 at 22:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rpr9-rxv7-x643 Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:36882 cve-icon
https://access.redhat.com/errata/RHSA-2026:36883 cve-icon
https://access.redhat.com/errata/RHSA-2026:40262 cve-icon
https://access.redhat.com/errata/RHSA-2026:41031 cve-icon
https://access.redhat.com/errata/RHSA-2026:41055 cve-icon
https://access.redhat.com/errata/RHSA-2026:41064 cve-icon
https://access.redhat.com/errata/RHSA-2026:41066 cve-icon
https://access.redhat.com/errata/RHSA-2026:42146 cve-icon
https://access.redhat.com/errata/RHSA-2026:42796 cve-icon
https://access.redhat.com/errata/RHSA-2026:43052 cve-icon
https://access.redhat.com/errata/RHSA-2026:46598 cve-icon
https://access.redhat.com/errata/RHSA-2026:46685 cve-icon
https://access.redhat.com/errata/RHSA-2026:46885 cve-icon
https://access.redhat.com/errata/RHSA-2026:46903 cve-icon
https://access.redhat.com/errata/RHSA-2026:47735 cve-icon
https://access.redhat.com/errata/RHSA-2026:47737 cve-icon
https://access.redhat.com/errata/RHSA-2026:48124 cve-icon
https://access.redhat.com/errata/RHSA-2026:51196 cve-icon
https://access.redhat.com/errata/RHSA-2026:51197 cve-icon
https://access.redhat.com/errata/RHSA-2026:51349 cve-icon
https://access.redhat.com/errata/RHSA-2026:57191 cve-icon
https://access.redhat.com/errata/RHSA-2026:57194 cve-icon
https://access.redhat.com/errata/RHSA-2026:59593 cve-icon
https://access.redhat.com/errata/RHSA-2026:60386 cve-icon
https://access.redhat.com/errata/RHSA-2026:60441 cve-icon
https://access.redhat.com/errata/RHSA-2026:63046 cve-icon
https://access.redhat.com/errata/RHSA-2026:63103 cve-icon
https://access.redhat.com/security/cve/CVE-2026-44990 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2488565 cve-icon
https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-rpr9-rxv7-x643 cve-icon cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-44990 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44990.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-44990 cve-icon
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apostrophecms
Apostrophecms sanitize-html
Vendors & Products Apostrophecms
Apostrophecms sanitize-html
Type Values Removed Values Added
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.
Title Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 10, 2026, 12:05 PM
Reserved
May 8, 2026, 4:23 PM
Status
Deferred
Published
Jun 12, 2026, 9:16 PM
Modified
Oct 26, 2026, 11:10 AM
Severity
Important
Public date
Jun 12, 2026, 8:39 PM