{"id":"CVE-2026-44990","aliases":["CVE-2026-44990","GHSA-rpr9-rxv7-x643"],"related":[],"kind":"vulnerability","state":"published","title":"Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nUnder the default configuration, `sanitize-html` 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.\n\n### Details\nIn `sanitize-html@2.17.3`, the default `nonTextTags` list includes only `script`, `style`, `textarea`, and `option` in `index.js` lines 138-142. That means disallowed `xmp` tags are not treated as \"drop the entire contents\" tags.\n\nLater, in the `ontext` handler at `index.js` lines 569-577, the code special-cases `textarea` and `xmp` and appends their text content directly to the output without escaping:\n\n```js\n} else if ((options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') && (tag === 'textarea' || tag === 'xmp')) {\n  result += text;\n}\n```\n\nBecause `htmlparser2` treats `xmp` as a raw-text element, markup inside `xmp` is parsed as text on input but becomes live markup again once it is appended unescaped to the sanitized output.\n\nThis creates a default sanitizer bypass. For example, a disallowed `<xmp>` wrapper can be used to smuggle `<script>` or event-handler payloads through sanitization.\n\nThe README also appears to contradict the implementation. In the \"Discarding the entire contents of a disallowed tag\" section, the documented exception list names only `style`, `script`, `textarea`, and `option`, and does not mention `xmp`.\n\n### PoC\nTested locally against `sanitize-html@2.17.3` on Node.js `v25.2.1`.\n\n1. Install the package:\n\n```bash\nnpm install sanitize-html\n```\n\n2. Run the following script:\n\n```js\nconst sanitizeHtml = require('sanitize-html');\n\nconsole.log(sanitizeHtml('<xmp><script>alert(1)</script></xmp>'));\nconsole.log(sanitizeHtml('<xmp><img src=x onerror=alert(1)></xmp>'));\nconsole.log(sanitizeHtml('<xmp><svg><script>alert(1)</script></svg></xmp>'));\n```\n\n3. Observed output:\n\n```html\n<script>alert(1)</script>\n<img src=x onerror=alert(1)>\n<svg><script>alert(1)</script></svg>\n```\n\n4. Render any of the returned strings in a browser context that trusts `sanitize-html` output, for example:\n\n```js\nconst dirty = '<xmp><script>alert(1)</script></xmp>';\nconst clean = sanitizeHtml(dirty);\n```\n\nIf `clean` is inserted into the DOM or stored and later rendered as trusted HTML, the attacker-controlled script executes.\n\n### Impact\nThis is a cross-site scripting vulnerability in the default sanitizer behavior. Any application that uses `sanitize-html` defaults and then renders the returned HTML as trusted output is impacted. A remote attacker who can submit HTML content can trigger execution of arbitrary JavaScript in another user's browser when that content is viewed.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ApostropheCMS es un sistema de gestión de contenido de código abierto basado en Node.js, y sanitize-html proporciona un saneador de HTML simple con una API clara. Bajo la configuración predeterminada, las versiones de sanitize-html anteriores a la 2.17.4 pueden convertir contenido controlado por el atacante dentro de un elemento xmp no permitido en HTML o JavaScript en vivo. Esto es un bypass del saneador en la ruta predeterminada disallowedTagsMode: ’discard’ y puede llevar a XSS almacenado en aplicaciones que renderizan la salida saneada de vuelta a los usuarios. La versión 2.17.4 corrige el problema.","source":"nvd"}],"published":"2026-05-14T18:26:27.000Z","modified":"2026-10-26T11:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.17.4","status":"affected"}],"vendor":"apostrophecms","product":"sanitize-html","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784312384","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.1","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.10::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1786911977","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.11","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.11::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1786668856","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.17","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783351002","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.6","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785078604","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.8","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.8::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783348181","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"multicluster engine for Kubernetes 2.9","package":"multicluster-engine/console-mce-rhel9","cpe":"cpe:/a:redhat:multicluster_engine:2.9::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783350952","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.11","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.11::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785078581","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.13","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.13::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783451729","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.14","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.14::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784578812","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.15","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.15::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1786908361","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.16","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.16::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787335105","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2.17","package":"rhacm2/console-rhel9","cpe":"cpe:/a:redhat:acm:2.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784844382","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Container Native Virtualization 4.19","package":"container-native-virtualization/kubevirt-console-plugin-rhel9","cpe":"cpe:/a:redhat:container_native_virtualization:4.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784629964","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Container Native Virtualization 4.20","package":"container-native-virtualization/kubevirt-console-plugin-rhel9","cpe":"cpe:/a:redhat:container_native_virtualization:4.20::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1788350963","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.20","package":"openshift4/ose-console-rhel9","cpe":"cpe:/a:redhat:openshift:4.20::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1788359934","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.21","package":"openshift4/ose-console-rhel9","cpe":"cpe:/a:redhat:openshift:4.21::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1787746382","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.22","package":"openshift4/ose-console-rhel9","cpe":"cpe:/a:redhat:openshift:4.22::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784737150","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","package":"devspaces/dashboard-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3.29::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783750447","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Quay 3.10","package":"quay/quay-rhel8","cpe":"cpe:/a:redhat:quay:3.10::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783751865","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"1784353904","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Quay 3.12","package":"quay/quay-rhel8","cpe":"cpe:/a:redhat:quay:3.12::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784351966","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Quay 3.15","package":"quay/quay-rhel8","cpe":"cpe:/a:redhat:quay:3.15::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783955846","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Quay 3.16","package":"quay/quay-rhel9","cpe":"cpe:/a:redhat:quay:3.16::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784125838","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Quay 3.9","package":"quay/quay-rhel8","cpe":"cpe:/a:redhat:quay:3.9::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785922764","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18","package":"satellite/iop-host-inventory-frontend-rhel9","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785956497","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19","package":"satellite/iop-host-inventory-frontend-rhel9","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785937325","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19","package":"satellite/iop-vulnerability-frontend-rhel9","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"opentelemetry-collector","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"opentelemetry-collector-contrib","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mlflow-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-agent-installer-ui-rhel9","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-console","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"nodejs-sanitize-html","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"satellite/iop-advisor-frontend-rhel9","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.17.3","status":"affected","fixed":"2.17.4"}],"ecosystem":"npm","package":"sanitize-html","purl":"pkg:npm/sanitize-html","source":"ghsa"}],"references":[{"url":"https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-rpr9-rxv7-x643","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-44990","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2488565","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44990.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41064","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:47737","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36882","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46903","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57191","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:60386","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46685","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46598","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:63103","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:63046","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:60441","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:48124","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41031","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42146","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43052","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42796","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41066","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:40262","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51349","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51196","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51197","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57194","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:59593","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46885","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41055","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:47735","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36883","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44990","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apostrophecms/apostrophe/issues/5418","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apostrophecms/apostrophe/commit/8d4c882b4ed3a7ce802cd87f89f0c1cb7482b8c2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apostrophecms/apostrophe","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-15T13:04:32.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44990","url":"https://www.cve.org/CVERecord?id=CVE-2026-44990","licence":"CVE Terms of Use","modified":"2026-09-10T12:05:09.696Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rpr9-rxv7-x643","url":"https://github.com/advisories/GHSA-rpr9-rxv7-x643","licence":"CC-BY-4.0","modified":"2026-06-12T22:15:09.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44990","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44990","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:24.574Z","epss":{"score":0.00684,"percentile":0.53828,"date":"2026-12-01T12:00:22.000Z"}}