DOMPurify

XSS sanitizer

A DOM-only XSS sanitizer for HTML, MathML, and SVG

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 configurability and hooks. Demo:

GitHub

14k stars
153 watching
741 forks
Language: JavaScript
last commit: almost 2 years ago
Linked from 6 awesome lists

cross-site-scriptingdomdompurifyhtmljavascriptmathmlprevent-xss-attackssanitizersecuritysvgxss

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
leizongmin/js-xssSanitizes untrusted HTML to prevent cross-site scripting attacks by filtering input based on a whitelist of allowed tags and attributes.5,227
apostrophecms/sanitize-htmlA JavaScript library for cleaning up and sanitizing user-submitted HTML, removing unwanted content while preserving whitelisted elements and attributes.3,867
csstools/sanitize.cssA collection of CSS stylesheets providing consistent, cross-browser default styling and normalization for various HTML elements.5,232
microcosm-cc/bluemondayA fast and highly configurable HTML sanitizer that protects against cross-site scripting (XSS) attacks by scrubbing user-generated content against an allowlist of safe elements and attributes.3,241
necolas/normalize.cssA CSS reset that preserves useful defaults and corrects common browser inconsistencies.52,625
ezyang/htmlpurifierAn HTML filtering solution that ensures documents from untrusted sources are standards compliant and safe from XSS attacks.3,106
fb55/htmlparser2A fast and forgiving HTML parser with a focus on minimal allocations4,474
webreflection/hyperhtmlA lightweight virtual DOM alternative built on top of HTML template literals3,071
docsifyjs/docsifyGenerates websites from Markdown files with no build process required28,044
evilstreak/markdown-jsA Markdown parser that produces well-formed HTML with intermediate representation and supports extensibility7,697
licitdev/directus-extension-sanitize-htmlAn extension that sanitizes user-provided HTML input data to prevent XSS attacks7
xemlock/htmlpurifier-html5A library that provides HTML5 element definitions and sanitization rules for the popular HTML Purifier library101
hahwul/dalfoxAutomates the process of identifying vulnerabilities in web applications by scanning for cross-site scripting (XSS) flaws and analyzing parameters.3,820
sindresorhus/modern-normalizeCreates a standardized CSS style sheet for modern web browsers6,379
payloadbox/xss-payload-listA collection of scripts and payloads designed to exploit Cross-Site Scripting (XSS) vulnerabilities in web applications.6,484