# DOMPurify — card for AI agents

Fast XSS sanitizer for HTML, MathML and SVG protecting against injection attacks.

Category: Auth and security libraries · npm package `dompurify` · latest version 3.4.17 (checked 2026-11-01)
Install: `npm install dompurify`
License: (MPL-2.0 OR Apache-2.0) (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 77.2 (#152 of all tools, 3 of 141 in its category)
- Used in 101 public projects set up for AI coding agents (1.6%)
- Downloads last week: 106,785,063 (as of 2026-11-24), +45.4% over 4 weeks
- GitHub stars: 17,544 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
Vite 66.3%, jsdom 49.5%, Tailwind CSS 77.2%, Testing Library 44.6%, React 76.2%, Lucide React 57.4%

## Links
- AgentGid page: https://agentgid.com/tools/dompurify/
- Homepage: https://github.com/cure53/DOMPurify
- Repository: https://github.com/cure53/DOMPurify

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
