VYPR

Sanitize HTML

by Apostrophecms

Source repositories

CVEs (8)

  • CVE-2026-40186MedApr 15, 2026
    risk 0.33cvss 6.1epss 0.00

    ApostropheCMS is an open-source Node.js content management system. A regression introduced in commit 49d0bb7, included in versions 2.17.1 of the ApostropheCMS-maintained sanitize-html package bypasses allowedTags enforcement for text inside nonTextTagsArray elements (textarea…

  • CVE-2014-125128MedSep 8, 2025
    risk 0.33cvss 6.1epss 0.00

    '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 (``), allowing bypasses that contain different casings, whitespace characters, or…

  • CVE-2019-25225MedSep 8, 2025
    risk 0.33cvss 6.1epss 0.00

    `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,…

  • CVE-2016-1000237MedJan 23, 2020
    risk 0.33cvss 6.1epss 0.01

    sanitize-html before 1.4.3 has XSS.

  • CVE-2024-21501MedFeb 24, 2024
    risk 0.28cvss 5.3epss 0.01

    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…

  • CVE-2022-25887MedAug 30, 2022
    risk 0.28cvss 5.3epss 0.01

    The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.

  • CVE-2021-26539MedFeb 8, 2021
    risk 0.28cvss 5.3epss 0.02

    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.

  • CVE-2021-26540MedFeb 8, 2021
    risk 0.00cvss 5.3epss 0.02

    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…