GitHub Advisoryadvisory · npm
GHSA-rjqq-98f6-6j3r Improper Input Validation in sanitize-html
MEDIUM
Official page ↗
- Aliases
- CVE-2021-26539
- Ecosystem
- npm
- Packages
- sanitize-html
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-20
- Reviewed
- 2021-03-29
Affected packages
• npm sanitize-html: < 2.3.1 → fixed in 2.3.1
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.
Related
Alias · CVE (1)
- CVE-2021-26539 Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-26539 advisory
- https://github.com/apostrophecms/sanitize-html/pull/458 web
- https://github.com/apostrophecms/sanitize-html/commit/bdf7836ef8f0e5b21f9a1aab0623ae8fcd09c1da web
- https://advisory.checkmarx.net/advisory/CX-2021-4308 web
- https://github.com/apostrophecms/sanitize-html package
- https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md#231-2021-01-22 web