CVSS 3.1
6.1 mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NMedium (6.1) in apostrophecms. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in sanitize-html 2.17.3.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:Nsanitize-html (npm): fixed in 2.17.3Explain CVE-2026-40186 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40186?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40186?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40186 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| apostrophecms:apostrophecms | 4.29.0 |
| apostrophecms:sanitize-html | through 2.17.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-9mrh-v2v3-xpfm | npm | sanitize-html | >=2.17.2 <2.17.3 | 2.17.3 |
Red Hat rates this Moderate.
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.
To mitigate this issue, ensure that `textarea` and `option` elements are not explicitly included in the `allowedTags` configuration of the `sanitize-html` package. If these elements are essential, implement robust input validation at the application layer to prevent the injection of entity-encoded HTML. Review and harden content sanitization policies to prevent Cross-Site Scripting.
| Product | Package | State | Advisory |
|---|---|---|---|
| Multicluster Engine for Kubernetes | multicluster-engine/console-mce-rhel9 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-rhel9 | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mlflow-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-ui-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 5 | openshift5/ose-agent-installer-ui-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 5 | openshift5/ose-console-rhel9 | Fix deferred | |
| Red Hat OpenShift Dev Spaces | devspaces/dashboard-rhel9 | Out of support scope | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-console-plugin-rhel9 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-rhel8 | Fix deferred | |
| Red Hat Quay 3 | quay/quay-rhel9 | Fix deferred | |
| Red Hat Satellite 6 | nodejs-sanitize-html | Fix deferred | |
| Red Hat Satellite 6 | satellite/iop-advisor-frontend-rhel9 | Fix deferred | |
| Red Hat Satellite 6 | satellite/iop-host-inventory-frontend-rhel9 | Fix deferred | |
| Red Hat Satellite 6 | satellite/iop-vulnerability-frontend-rhel9 | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40186.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.