VYPR

Sanitize HTML

by Apostrophecms

Source repositories

CVEs (4)

  • 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-2019-25225Sep 8, 2025
    risk 0.00cvss epss 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-2024-21501Feb 24, 2024
    risk 0.00cvss epss 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-25887Aug 30, 2022
    risk 0.00cvss epss 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.