Skip to content
JS
Package

dompurify

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It runs as JavaScript and works in all modern browsers, as well as in Node.js (via jsdom). DOMPurify is written by security people who have vast background in web a

v3.4.16, 23 Sept 2026(MPL-2.0 OR Apache-2.0)ESM + CommonJSTypes: BundledSecurityImage processing
$ npm install dompurify

Key numbers

As of 25 Sept 2026
Weekly downloads
45.3m
+303% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 day ago
v3.4.16
GitHub stars
17.4k
860 forks
Open issues / PRs
0 / 0
Contributors
136
Commits, last 52 weeks
333

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 65.3m (25 Aug 2026)Low 9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

45,348,482 downloads last week, 219,873,401 in the last month. The 12-month change of +303% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
22153 in total
Latest version
3.4.16, 23 Sept 20261 day ago
First published
21 May 2014
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
333
Dependents on npm
5,327

Major versions

  1. v3 first release 3.0.0, 13 Feb 2023
  2. v2 first release 2.0.0, 12 Sept 2019
  3. v1 first release 1.0.0, 15 Aug 2017
  4. v0 first release 0.4.0, 21 May 2014

Recent releases

VersionPublished
3.4.1623 Sept 2026
3.4.156 Sept 2026
3.4.1419 Aug 2026
3.4.133 Aug 2026
3.4.1211 Jul 2026
3.4.1117 Jun 2026
3.4.1012 Jun 2026
3.4.910 Jun 2026
3.4.83 Jun 2026
3.4.727 May 2026
3.4.626 May 2026
3.4.518 May 2026
3.4.417 May 2026
3.4.313 May 2026
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
1.5 MB
Dependencies (0)
None
npm install dompurify

CDN

jsDelivr: 519.3m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/dompurify@3.4.16/
  • unpkghttps://unpkg.com/dompurify@3.4.16/
  • esm.shhttps://esm.sh/dompurify@3.4.16
PackageWeekly downloadsGzipLast releaseModuleComparison
hast-util-sanitize8.2m-1 year agoESM only-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.