MediumGHSA-3j7m-hmh3-9jmpCVE-2016-1000237

Cross-Site Scripting in sanitize-html

Published 16 Apr 2020 · Updated 8 Nov 2023

Is your project on an affected sanitize-html?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected package

Affected
<1.4.3
Fixed in
1.4.3
Update to the fixed version for your release line, for example:npm install sanitize-html@1.4.3

Details

Affected versions of sanitize-html do not sanitize input recursively, which may allow an attacker to execute arbitrary Javascript.

Recommendation

Update to version 1.4.3 or later.

Is GHSA-3j7m-hmh3-9jmp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected sanitize-html, and gives you the command that fixes it.

More advisories for sanitize-html

  • MediumCVE-2026-113650ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced) · 21 Oct 2026
  • LowCVE-2026-113657ApostropheCMS sanitize-html: SMIL animation namespace-prefix bypass allows javascript: URI injection (XSS) · 20 Oct 2026
  • MediumCVE-2026-113661ApostropheCMS: Incomplete CVE-2026-53606: `meta http-equiv=refresh` `content` still ships `javascript:` / `data:` URLs · 20 Oct 2026
  • MediumCVE-2026-113654ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting <noscript> content render · 20 Oct 2026
  • MediumCVE-2026-63670ApostropheCMS: Mutation-XSS / allowedTags bypass via literal `</textarea/>` solidus close · 3 Sept 2026
  • MediumCVE-2026-84371ApostropheCMS: Stored XSS via SVG SMIL URI-list scheme-policy bypass · 1 Sept 2026
All 17 advisories for sanitize-html

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.