cure53/dompurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 49 minutes ago
Added to GitGenius on September 3rd, 2026
Created on February 17th, 2014
Open Issues & Pull Requests: 0 (+0)
GitHub issues: Enabled
Number of forks: 858
Total Stargazers: 17,364 (+0)
Total Subscribers: 151 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.9 hours
Mean response time: 27.9 hours
90th percentile: 40.7 hours
Tracked items: 153

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 12% of issues opened in the past year have been closed. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

DOMPurify is a DOM-only XSS sanitizer for HTML, MathML and SVG that runs as JavaScript in web browsers and Node.js environments.

The tool addresses the problem of cross-site scripting attacks by sanitizing untrusted HTML, MathML, and SVG content before it reaches the DOM. It operates with a secure default configuration while allowing extensive customization through configuration options and hooks. The sanitizer is designed to be both performant and tolerant of malformed input, handling edge cases that arise from parser mutations, namespace tricks, clobbering attacks, and template injection vectors.

Developers should adopt this tool when they need to safely render user-supplied or third-party HTML content in web applications. It suits projects ranging from content management systems to rich text editors where HTML sanitization is critical. The tool works across modern browsers including Safari, Opera, Edge, Firefox, and Chrome, with graceful degradation on legacy browsers. A separate maintenance branch provides security updates for Internet Explorer compatibility where needed.

The project's maintainers respond to issues and pull requests within hours. Work in the issue tracker is dominated by enhancement requests, indicating active development focused on expanding capabilities and improving the sanitizer's robustness.