cve.bz

CVE-2021-26540 apostrophecms sanitize-html

5.3 mediumExploit referenceEPSS 1.8%Fix available

Medium (5.3) in apostrophecms sanitize-html. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in sanitize-html 2.3.2.

On this page
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-26540 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-26540?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-26540?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-2021-26540 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apostrophecms:sanitize-htmlbefore 2.3.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mjxr-4v3x-q3m4npmsanitize-html<2.3.22.3.2

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.8openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-thanos-rhel8:v4.8.0-202106291913.p0.git.c358e96.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.9openshift4/ose-prometheus:v4.9.0-202109302016.p0.git.3197fa7.assembly.streamFixed 2021-10-18RHSA-2021:3759
OpenShift Service Mesh 2.0servicemesh-prometheusAffected

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-2021-26540.

References

Check your stackJSON