CISA list

● npm package

sanitize-html

Sanitize-html has 17 security advisories. The newest release any of them names as the fix is 2.18.1.

As of , sanitize-html has 17 security advisories. The newest release any of them names as the fix is 2.18.1.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 2.18.12.18.117 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-113650GHSA-c9rx-x947-fp3hApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced)Moderate severityFrom 2.18.0 before 2.18.12.18.1
CVE-2026-113657GHSA-374f-7chj-9948ApostropheCMS sanitize-html: SMIL animation namespace-prefix bypass allows javascript URI injection (XSS)Low severityFrom 2.17.7 before 2.18.02.18.0
CVE-2026-113661GHSA-cv27-6wvh-8x7jApostropheCMS: Incomplete CVE-2026-53606: `meta http-equiv=refresh` `content` still ships `javascript` / `data:` URLsModerate severityBefore 2.18.02.18.0
CVE-2026-113654GHSA-x3q4-9hxx-gx8mApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting <noscript> content renderModerate severityBefore 2.18.02.18.0
CVE-2026-63670GHSA-jxwj-j7wr-gfrwApostropheCMS: Mutation-XSS / allowedTags bypass via literal `</textarea/>` solidus closeModerate severityBefore 2.17.62.17.6
CVE-2026-84371GHSA-g8qq-57p8-ggw5ApostropheCMS: Stored XSS via SVG SMIL URI-list scheme-policy bypassModerate severityFrom 1.9.0 before 2.17.72.17.7
CVE-2026-53606GHSA-vccv-cmxp-4j9hsanitize-html has incomplete URI scheme validation in that allows javascript URIs through action, formaction, data, poster, and background attributesModerate severityFrom 1.18.0 before 2.17.52.17.5
CVE-2026-44990GHSA-rpr9-rxv7-x643Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`Critical severityFrom 2.17.3 before 2.17.42.17.4
CVE-2026-40186GHSA-9mrh-v2v3-xpfmsanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags ElementsModerate severityFrom 2.17.2 before 2.17.32.17.3
CVE-2019-25225GHSA-qhxp-v273-g94hsanitize-html is vulnerable to XSS through incomprehensive sanitizationModerate severityBefore 2.0.0-beta2.0.0-beta
CVE-2024-21501GHSA-rm97-x556-q36hsanitize-html Information Exposure vulnerabilityModerate severityBefore 2.12.12.12.1
CVE-2022-25887GHSA-cgfm-xwp7-2cvrSanitize-html Vulnerable To REDoS AttacksHigh severityBefore 2.7.12.7.1
CVE-2021-26540GHSA-mjxr-4v3x-q3m4Improper Input Validation in sanitize-htmlModerate severityBefore 2.3.22.3.2
CVE-2021-26539GHSA-rjqq-98f6-6j3rImproper Input Validation in sanitize-htmlModerate severityBefore 2.3.12.3.1
CVE-2016-1000237GHSA-3j7m-hmh3-9jmpCross-Site Scripting in sanitize-htmlModerate severityBefore 1.4.31.4.3
CVE-2017-16016GHSA-xc6g-ggrc-qq4rCross-Site Scripting in sanitize-htmlModerate severityBefore 1.11.41.11.4
CVE-2017-16017GHSA-wg96-3933-j2w5Cross-Site Scripting in sanitize-htmlModerate severityBefore 1.2.31.2.3

Other npm packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0