Lucene search
+L

CVE-2026-40186

🗓️ 15 Apr 2026 20:15:12Reported by GitHub_MType 
cve
 cve
🔗 web.nvd.nist.gov👁 93 Views🌐 WEB

ApostropheCMS sanitize-html bypasses allowedTags for textarea and option text due to entity decoding.

Related
Detection
Affected
Refs
Paths
NVD
Vulners
Node
apostrophecmssanitize-htmlRange2.17.1node.js
[
  {
    "vendor": "apostrophecms",
    "product": "apostrophe",
    "versions": [
      {
        "version": ">= 4.28.0, < 4.29.0",
        "status": "affected"
      }
    ]
  },
  {
    "vendor": "apostrophecms",
    "product": "sanitize-html",
    "versions": [
      {
        "version": ">= 2.17.1, < 2.17.2",
        "status": "affected"
      }
    ]
  }
]
ParameterPositionPathDescriptionCWE
affected by decode-then-escape bug in htmlparser2 10.xpathpackages/sanitize-html/index.js:569-573Regression allowing entity-encoded HTML to bypass allowedTags due to htmlparser2 decoding entities before ontext, enabling XSS via allowed textarea/option elements. Fixed in sanitize-html 2.17.2 and ApostropheCMS 4.29.0.CWE-79
allowedTagspathpackages/sanitize-html/index.js:569-573Regression allowing entity-encoded HTML to bypass allowedTags due to htmlparser2 decoding entities before ontext, enabling XSS via allowed textarea/option elements. Fixed in sanitize-html 2.17.2 and ApostropheCMS 4.29.0.CWE-79
textareapathpackages/sanitize-html/index.js:569-573Regression allowing entity-encoded HTML to bypass allowedTags due to htmlparser2 decoding entities before ontext, enabling XSS via allowed textarea/option elements. Fixed in sanitize-html 2.17.2 and ApostropheCMS 4.29.0.CWE-79
optionpathpackages/sanitize-html/index.js:569-573Regression allowing entity-encoded HTML to bypass allowedTags due to htmlparser2 decoding entities before ontext, enabling XSS via allowed textarea/option elements. Fixed in sanitize-html 2.17.2 and ApostropheCMS 4.29.0.CWE-79
entity encodingpathpackages/sanitize-html/index.js:569-573Regression allowing entity-encoded HTML to bypass allowedTags due to htmlparser2 decoding entities before ontext, enabling XSS via allowed textarea/option elements. Fixed in sanitize-html 2.17.2 and ApostropheCMS 4.29.0.CWE-79

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Jun 2026 10:44Current
6Medium risk
Vulners AI Score6
CVSS 3.16.1
EPSS0.00235
SSVC
93