qmetrics.net

DOMPurify

Browser XSS sanitizer for HTML, SVG, and MathML

Application SecurityDesktop/CLI app
DOMPurify screenshot

A JavaScript sanitizer that strips dangerous markup from HTML, SVG, and MathML strings before they reach the DOM. It runs in modern browsers and can be used with Node.js when a DOM implementation is present.

Overview

DOMPurify is a client-side JavaScript library focused on preventing cross-site scripting when untrusted HTML must be shown or inserted into a page. It accepts dirty markup as a string or DOM node and returns cleaned HTML by removing elements and attributes that could execute scripts or otherwise enable attacks.

It supports HTML5, SVG, and MathML by default, with configuration for tighter allow lists, hooks, persistent settings, and Trusted Types integration. The library uses browser parsing APIs for speed and can sanitize open shadow DOM trees; closed shadow roots and certain mixed parsing contexts require careful handling as described in its security guidance.

An interactive demo lets developers paste sample payloads, choose presets such as HTML-only or strict text formatting, and inspect timing, removed nodes, and sanitized output. Server-side use typically pairs DOMPurify with a maintained jsdom release; edge runtimes may rely on separate compatibility projects.

Security documentation covers threat models, attack classes, bypass history, and safe patterns when combining sanitization with other libraries or post-processing steps.

Key features

  • HTML, SVG, and MathML purification
  • Configurable tags and attributes
  • Hook and policy customization
  • Trusted Types API support
  • DOM node and string inputs
  • Shadow DOM template walking
  • Node.js use with jsdom
  • Interactive sanitization demo

Use cases

  • Rendering user-generated rich text
  • Cleaning HTML before innerHTML insertion
  • Angular and jQuery HTML sinks
  • Server-side sanitization in Node
  • Testing XSS payloads against rules

Tags

Similar software

REA

MCP and CLI reverse-engineering toolkit for agents

REA connects coding agents and terminals to local analysis tools for binaries, Electron apps, websites, .NET, and Android targets. Setup registers MCP access and investigation skills via npm.

★ 480.8k⟳ todayMIT

Hackingtool

AI-guided terminal toolkit for authorized security testing

Hackingtool bundles many security utilities in one console with optional AI help to pick tools and commands. It targets Linux and macOS and is meant for authorized testing only.

★ 82.2k⟳ 28 days agoMIT
Application SecurityDesktop/CLI app

Strix

AI-driven penetration testing for developers

Strix runs autonomous AI agents that probe applications like attackers, validate issues with proofs of concept, and integrate into CLI and CI workflows.

★ 78k⟳ todayApache-2.0
AI Security & PrivacyDesktop/CLI app
Open Source Alternative to:XBOW

Magisk

Android customization suite with root and modules

Magisk is open source software for tailoring Android 7.0 and newer devices. It provides root access, systemless module installs, boot image tools, and per-app code injection via Zygisk.

★ 64.4k⟳ 4 days agoGPL-3.0
AutomationDesktop/CLI app

Shannon

Autonomous AI penetration tester for web apps and APIs

Shannon analyzes web application source code, plans attack paths, and runs real exploits against staging targets. Only vulnerabilities confirmed with a working proof of concept appear in reports.

★ 52.4k⟳ 2 days agoAGPL-3.0
Open Source Alternative to:XBOW

acme.sh

POSIX shell client for ACME SSL automation

acme.sh issues, renews, and installs SSL and TLS certificates via the ACME protocol using a single shell script with no Python dependency.

★ 48k⟳ 9 days agoGPL-3.0
Build & DeploymentDesktop/CLI app