CVE-2021-26540 Improper Input Validation in sanitize-html
MediumCVSS 5.3
EPSS 1.8%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Debian
Description
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".
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apostrophecms sanitize-html | < 2.3.2 | 2.3.2 | Fixed |
| npm sanitize-html(npm) | < 2.3.2 | 2.3.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm sanitize-html(npm) | < 2.3.2 | 2.3.2 |
| apostrophecms sanitize-html | < 2.3.2 | 2.3.2 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- advisory.checkmarx.net exploit patch third-party-advisory
- github.com release-notes third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-26540 vendor-advisory