npmWorst: Critical17 advisories

sanitize-html: known vulnerabilities

sanitize-html has 17 reviewed security advisories in the GitHub Advisory Database — 1 critical, 1 high, 14 moderate, 1 low. The most recent was published 2026-10-20. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the sanitize-html versions running across your servers, containers and images, and ranks what to patch first.

How to fix sanitize-html

Upgrade sanitize-html to a release at or above the fixed version shown for each advisory below. For npm:

npm install sanitize-html@2.18.0 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (17)

ApostropheCMS sanitize-html: SMIL animation namespace-prefix bypass allows javascript: URI injection (XSS) Low 3.7 CWE-79 — Affected: from 2.17.7 up to 2.18.0. Fixed in 2.18.0. Published 2026-10-20. GHSA-374f-7chj-9948 · CVE-2026-113657
ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced) Moderate 5.3 CWE-674 — Affected: from 2.18.0 up to 2.18.1. Fixed in 2.18.1. Published 2026-10-20. GHSA-c9rx-x947-fp3h · CVE-2026-113650
ApostropheCMS: Incomplete CVE-2026-53606: `meta http-equiv=refresh` `content` still ships `javascript:` / `data:` URLs Moderate 5.4 CWE-79 — Affected: before 2.18.0. Fixed in 2.18.0. Published 2026-10-20. GHSA-cv27-6wvh-8x7j · CVE-2026-113661
ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting <noscript> content render Moderate CWE-79 — Affected: before 2.18.0. Fixed in 2.18.0. Published 2026-10-20. GHSA-x3q4-9hxx-gx8m · CVE-2026-113654
ApostropheCMS: Stored XSS via SVG SMIL URI-list scheme-policy bypass Moderate 5.4 CWE-79 — Affected: from 1.9.0 up to 2.17.7. Fixed in 2.17.7. Published 2026-09-01. GHSA-g8qq-57p8-ggw5 · CVE-2026-84371
ApostropheCMS: Mutation-XSS / allowedTags bypass via literal `</textarea/>` solidus close Moderate 6.1 CWE-79 — Affected: before 2.17.6. Fixed in 2.17.6. Published 2026-08-17. GHSA-jxwj-j7wr-gfrw · CVE-2026-63670
Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html` Critical 9.3 CWE-79 — Affected: from 2.17.3 up to 2.17.4. Fixed in 2.17.4. Published 2026-06-12. GHSA-rpr9-rxv7-x643 · CVE-2026-44990
sanitize-html has incomplete URI scheme validation in that allows javascript: URIs through action, formaction, data, poster, and background attributes Moderate 5.4 CWE-79 — Affected: from 1.18.0 up to 2.17.5. Fixed in 2.17.5. Published 2026-06-12. GHSA-vccv-cmxp-4j9h · CVE-2026-53606
sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements Moderate 6.1 CWE-79 — Affected: from 2.17.2 up to 2.17.3. Fixed in 2.17.3. Published 2026-04-15. GHSA-9mrh-v2v3-xpfm · CVE-2026-40186
sanitize-html is vulnerable to XSS through incomprehensive sanitization Moderate 6.1 CWE-79 — Affected: before 2.0.0-beta. Fixed in 2.0.0-beta. Published 2025-09-08. GHSA-qhxp-v273-g94h · CVE-2019-25225
sanitize-html Information Exposure vulnerability Moderate 5.3 CWE-200 CWE-538 — Affected: before 2.12.1. Fixed in 2.12.1. Published 2024-02-24. GHSA-rm97-x556-q36h · CVE-2024-21501
Sanitize-html Vulnerable To REDoS Attacks High 7.5 CWE-1333 — Affected: before 2.7.1. Fixed in 2.7.1. Published 2022-08-30. GHSA-cgfm-xwp7-2cvr · CVE-2022-25887
Improper Input Validation in sanitize-html Moderate 5.3 CWE-20 — Affected: before 2.3.2. Fixed in 2.3.2. Published 2021-02-08. GHSA-mjxr-4v3x-q3m4 · CVE-2021-26540
Improper Input Validation in sanitize-html Moderate 5.3 CWE-20 — Affected: before 2.3.1. Fixed in 2.3.1. Published 2021-02-08. GHSA-rjqq-98f6-6j3r · CVE-2021-26539

Find sanitize-html across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.