CVE-2021-26540
published 2021-02-08CVE-2021-26540: Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the…
PriorityP429medium5.3CVSS 3.1
AVNACLPRNUINSUCNILAN
EPSS
1.75%
75.1th percentile
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".
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apostrophecms | sanitize-html | < 2.3.2 | 2.3.2 |
| apostrophecms | sanitize-html | >= 0 < 2.3.2 | 2.3.2 |
| debian | node-sanitize-html | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
vendor_debian5.3LOW
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Improper Input Validation in sanitize-html
osv·2021-05-06
CVE-2021-26540 [MEDIUM] Improper Input Validation in sanitize-html
Improper Input Validation in sanitize-html
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".
GHSA
Improper Input Validation in sanitize-html
ghsa·2021-05-06
CVE-2021-26540 [MEDIUM] CWE-20 Improper Input Validation in sanitize-html
Improper Input Validation in sanitize-html
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".
Red Hat
sanitize-html: improper validation of hostnames set by the "allowedIframeHostnames" option can lead to bypass hostname whitelist for iframe element
vendor_redhat·2021-01-26·CVSS 5.3
CVE-2021-26540 [MEDIUM] CWE-20 sanitize-html: improper validation of hostnames set by the "allowedIframeHostnames" option can lead to bypass hostname whitelist for iframe element
sanitize-html: improper validation of hostnames set by the "allowedIframeHostnames" option can lead to bypass hostname whitelist for iframe element
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".
Package: servicemesh-prometheus (OpenShift Service Mesh 2.0) - Affected
Debian
CVE-2021-26540: node-sanitize-html - Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate th...
vendor_debian·2021·CVSS 5.3
CVE-2021-26540 [MEDIUM] CVE-2021-26540: node-sanitize-html - Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate th...
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".
Scope: local
bookworm: resolved
forky: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://advisory.checkmarx.net/advisory/CX-2021-4309https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#232-2021-01-26https://github.com/apostrophecms/sanitize-html/pull/460https://advisory.checkmarx.net/advisory/CX-2021-4309https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#232-2021-01-26https://github.com/apostrophecms/sanitize-html/pull/460
2021-02-08
Published