Live threats

All CVEs / Apostrophecms

CVE-2021-26539Apostrophecms Sanitize-html

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sanitize-html.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
apostrophecmssanitize-html< 2.3.1

Official sources

References

Links published by the sources. Open them with care.