
CVE catalog
CVE-2026-40186
ApostropheCMS is an open-source Node.js content…
A flaw was found in the `sanitize-html` package, a dependency of ApostropheCMS. A remote attacker could exploit a regression in `sanitize-html` versions prior to 2.17.2, which incorrectly handles entity decoding within `textarea` and `option` HTML elements. This allows an attacker to bypass the `allowedTags` filter by using entity encoding, leading to the injection of arbitrary HTML tags, including Cross-Site Scripting (XSS) payloads. Successful exploitation could result in arbitrary code execution in the context of the user's browser. sanitize-html: ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements This Moderate flaw in the `sanitize-html` package, a dependency for several Red Hat products, enables Cross-Site Scripting (XSS) attacks. The vulnerability occurs when entity-encoded HTML within `textarea` or `option` elements bypasses the `allowedTags` filter. Exploitation is limited to non-default configurations where these elements are explicitly permitted in `allowedTags`, reducing the immediate risk to typical Red Hat deployments. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.25% · Oct 27, 2026
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| UnknownRelease not reported | apostrophecms | Not reported | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | sanitize-html | Not reported | UnknownSource applicability is not established | Provider not reported |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| UnknownRelease not reported | apostrophecms | Not reported | UnknownSource applicability is not established | Provider not reported |
| UnknownRelease not reported | sanitize-html | Not reported | UnknownSource applicability is not established | Provider not reported |
Original provider fields
{
"package_releases": [],
"fixed_versions": [],
"distribution_packages": [
{
"name": "apostrophecms",
"fixed_version": "",
"applicability_unknown": true
},
{
"name": "sanitize-html",
"fixed_version": "",
"applicability_unknown": true
},
{
"name": "apostrophecms",
"ranges": [],
"ecosystem": "cpe",
"provider_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40186",
"fixed_version": "",
"provider_source": "nvd",
"provider_record_id": "NVD-CVE-2026-40186",
"provider_updated_at": "2026-10-26T21:10:00.170"
},
{
"name": "sanitize-html",
"ranges": [
{
"fixed": "",
"introduced": "",
"last_affected": "2.17.1",
"start_excluding": ""
}
],
"ecosystem": "cpe",
"provider_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40186",
"fixed_version": "",
"provider_source": "nvd",
"provider_record_id": "NVD-CVE-2026-40186",
"provider_updated_at": "2026-10-26T21:10:00.170"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
Observed:
References
- [https://github.com/apostrophecms/apostrophe/commit/7ca2d16237c72718ef7e5c7ae0458e6027ac4f64]
- [https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-9mrh-v2v3-xpfm]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-40186]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40186.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1654.json]
[CERT-Bund public advisories] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [Red Hat security advisories and VEX]