CVE-2021-26539
MEDIUM5.3EPSS 0.29%Improper Input Validation in sanitize-html
Published: 5/6/2021Modified: 11/8/2023
Also known as:GHSA-rjqq-98f6-6j3r
Description
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.
Affected packages (1)
- npm/sanitize-htmlfrom 0, < 2.3.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-26539
- PATCHhttps://github.com/apostrophecms/sanitize-html
- WEBhttps://advisory.checkmarx.net/advisory/CX-2021-4308
- WEBhttps://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#231-2021-01-22
- WEBhttps://github.com/apostrophecms/sanitize-html/commit/bdf7836ef8f0e5b21f9a1aab0623ae8fcd09c1da
- WEBhttps://github.com/apostrophecms/sanitize-html/pull/458