CVE-2021-26539
5.3medium
Improper Input Validation in sanitize-html
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.98% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| sanitize-html (npm) | before 2.3.1 | GitHub Advisory Database |
| apostrophecms sanitize-html | before 2.3.1 | NVD |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Apostrophe Technologies sanitize-html antes de 2.3.1, no maneja apropiadamente los nombres de dominio internacionalizados (IDN), lo que podría permitir a un atacante omitir la validación de la lista blanca de nombres de host establecida por la opción "allowedIframeHostnames"
References
| https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#231-2021-01-22 | release-notes, third-party-advisory, web | |
| https://github.com/apostrophecms/sanitize-html/pull/458 | patch, third-party-advisory, web | |
| https://advisory.checkmarx.net/advisory/CX-2021-4308 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-26539 | advisory | |
| https://github.com/apostrophecms/sanitize-html/commit/bdf7836ef8f0e5b21f9a1aab0623ae8fcd09c1da | web | |
| https://github.com/apostrophecms/sanitize-html | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26539 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rjqq-98f6-6j3r changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-26539 changed 2026-06-17 | Public domain |