CVE-2021-26539Apostrophecms Sanitize-html
Medium 5.3 No auth needed
Follow: this CVE · Apostrophecms · Apostrophecms Sanitize-html We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Feb 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.
What to do
- Apply the vendor's security update for Sanitize-html.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | sanitize-html |
< 2.3.1 |
2.3.1 |
npm install sanitize-html@2.3.1 |
Per OSV / GitHub Advisories (GHSA-rjqq-98f6-6j3r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apostrophecms | sanitize-html | < 2.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- advisory.checkmarx.net Exploit Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory