VendorsApostropheCMSsanitize-htmlall versions
Vulnerabilities

ApostropheCMS Sanitize-html

Ranked by severity, then by exploit likelihood. Click a CVE ID for its full record.

8CVEs
CVE-2022-25887
Regular Expression Denial of Service (ReDoS)
Published 2022-08-30 · Modified
7.5EPSS 0.015
CVE-2016-1000237
sanitize-html before 1.4.3 has XSS.
Published 2020-01-23 · Modified
6.1EPSS 0.008
CVE-2026-40186
ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements
Published 2026-04-15 · Analyzed
6.1EPSS 0.003
CVE-2014-125128
'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (`<a>`), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
Published 2025-09-08 · Analyzed
6.1EPSS 0.003
CVE-2019-25225
`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.
Published 2025-09-08 · Analyzed
6.1EPSS 0.003
CVE-2021-26539
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.
Published 2021-02-08 · Modified
5.3EPSS 0.020
CVE-2021-26540
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".
Published 2021-02-08 · Modified
5.3EPSS 0.018
CVE-2024-21501
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
Published 2024-02-24 · Analyzed
5.3EPSS 0.010