Is sanitize-html 2.18 vulnerable?

npm · 2 releases from 2.18.0 to 2.18.1 · latest sanitize-html is 2.18.1 · checked 1 Nov 2026

No known advisories in the last release

sanitize-html 2.18.1, the last 2.18 release, has no known advisories. 1 advisory affects earlier 2.18.x releases, so update to 2.18.1.

Update within 2.18:npm install sanitize-html@2.18.1

Is your project affected?

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

Fixed within 2.18.x, affecting earlier releases

  • MediumCVE-2026-113650GHSA-c9rx-x947-fp3h21 Oct 2026

    ApostropheCMS sanitize-html: unbounded recursion when re-sanitizing the fallback of a discarded iframe (stack overflow, nestingLimit not enforced)

    Affected
    >=2.18.0 <2.18.1
    Fixed in
    2.18.1

Which of your client projects are still on sanitize-html 2.18?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact sanitize-html version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other sanitize-html versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.