Skip to content
Heist/ feed
Back to feed
Medium

ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting

Type: advisorySources: Official CVE List

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Prior to sanitize-html 2.18.0, a non-default nonTextTags configuration that includes noscript can end its discard region early when htmlparser2 emits an implied ancestor close inside noscript. Because scripting-enabled browsers treat noscript content as raw text while the parser does not model that mode, content intended to remain inert can survive sanitization and render; the issue does not generalize to every default nonTextTags element. This issue is fixed in sanitize-html 2.18.0.

Products
apostrophe, sanitize-html
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-113654
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 10:46 UTC · Revision 2

Source evidence

ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting

core-cve · Original source

Published 20 Oct 2026, 16:35 UTC

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Prior to sanitize-html 2.18.0, a non-default nonTextTags configuration that includes noscript can end its discard region early when htmlparser2 emits an implied ancestor close inside noscript. Because scripting-enabled browsers treat noscript content as raw text while the parser does not model that mode, content intended to remain inert can survive sanitization and render; the issue does not generalize to every default nonTextTags element. This issue is fixed in sanitize-html 2.18.0.

cve:CVE-2026-113654

apostrophe

Fixed versions: Not specified

sanitize-html

Fixed versions: Not specified

Complete source record
{
  "id": "f4a39bbaffcb86d3a26fbd9dcfd6d91b3df338baa0c37eef78a053817f7b88e2",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-113654",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting",
    "summary": "ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Prior to sanitize-html 2.18.0, a non-default nonTextTags configuration that includes noscript can end its discard region early when htmlparser2 emits an implied ancestor close inside noscript. Because scripting-enabled browsers treat noscript content as raw text while the parser does not model that mode, content intended to remain inert can survive sanitization and render; the issue does not generalize to every default nonTextTags element. This issue is fixed in sanitize-html 2.18.0.",
    "evidence": "cve:CVE-2026-113654",
    "products": [
      {
        "name": {
          "value": "apostrophe",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      },
      {
        "name": {
          "value": "sanitize-html",
          "evidence": "/containers/cna/affected/1/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-113654",
      "aliases": [
        "CVE-2026-113654"
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 5.3,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "LOW",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "LOW",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "LOW",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "LOW"
          }
        }
      ],
      "affected": [
        {
          "vendor": "apostrophecms",
          "product": "apostrophe",
          "versions": [
            {
              "status": "affected",
              "version": "< 4.33.0"
            }
          ]
        },
        {
          "vendor": "apostrophecms",
          "product": "sanitize-html",
          "versions": [
            {
              "status": "affected",
              "version": "< 2.18.0"
            }
          ]
        }
      ],
      "modified": "2026-10-28T14:01:09.403Z",
      "provider": "cve",
      "references": [
        "https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-x3q4-9hxx-gx8m",
        "https://github.com/apostrophecms/apostrophe/commit/9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce",
        "https://github.com/apostrophecms/apostrophe/commit/f84fd41cbf6c22eb8d0008fc9c25df1f7130b350",
        "https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.18.0"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-113654",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-28T14:00:57.292356Z"
                  }
                }
              }
            ],
            "references": [
              {
                "url": "https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-x3q4-9hxx-gx8m",
                "tags": [
                  "exploit"
                ]
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-28T14:01:09.403Z"
            }
          }
        ],
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-20T16:35:55.161Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-113654",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 447324,
  "published_at": "2026-10-20T16:35:55.161+00:00"
}