
cure53/DOMPurifyDOMPurify - 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:
JavaScript · TypeScript★ 17.5K↓ 416M/月2026年11月19日

asamassekou10/ship-safeThe independent security agent for AI-written software. Finds issues, investigates whether they are real, and shows you the evidence. Deterministic core, no API key needed, JSON and SARIF output.
JavaScript★ 873↓ 5,927/月2026年12月5日

nette/latte☕ Latte: the safest & truly intuitive templates for PHP. Engine for those who want the most secure PHP sites.
PHP★ 1,295↓ 458.5K/月2026年12月3日
C#★ 12K2026年11月26日

hahwul/dalfox🌙🦊 Dalfox is a powerful open-source XSS scanner and utility focused on automation.
Rust★ 5,398↓ 231/月2026年11月24日

chaitin/SafeLineSafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.
Go · C++★ 23.4K2026年11月22日
TypeScript★ 605↓ 23.9M/月2026年10月24日

humanspeak/svelte-markdown📝 Markdown and HTML renderer for Svelte 5 — built for streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, token caching, TypeScript types.
TypeScript · Svelte★ 145↓ 143.8K/月2026年10月26日
C#★ 1,7162026年11月13日

voku/anti-xss㊙️ AntiXSS | Protection against Cross-site scripting (XSS) via PHP
PHP★ 712↓ 483.2K/月2026年11月17日
Rust★ 3↓ 11.6K/月2026年11月17日
Rust★ 688↓ 2.6M/月2026年11月15日
PHP★ 35↓ 20K/月2026年12月3日

AlbusKavaliro/AntiXssInofficial port of https://web.archive.org/web/20180126072328/http://wpl.codeplex.com/ to .NET Standard 2.0
C#★ 142026年11月21日

leizongmin/js-xssSanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
HTML · JavaScript★ 5,311↓ 34.1M/月2026年11月21日

paragonie/csp-builderBuild Content-Security-Policy headers from a JSON file (or build them programmatically)
PHP★ 540↓ 200.3K/月2026年11月29日

sinewaveai/agent-security-scanner-mcpSecurity scanner MCP server for AI coding agents. Prompt injection firewall, package hallucination detection (4.3M+ packages), 1000+ vulnerability rules with AST & taint analysis, auto-fix.
JavaScript · Python · TypeScript★ 124↓ 5,600/月2026年11月26日

interactivetools-com/SmartStringPHP strings that HTML-encode themselves on echo, interpolation, and concatenation. XSS-safe by default and at least 3x faster than calling htmlspecialchars() yourself.
PHP★ 0↓ 8,324/月2026年12月4日

interactivetools-com/ZenDBPHP/MySQL database layer where values only enter SQL through placeholders and every result HTML-encodes itself on output. Within microseconds of raw mysqli + htmlspecialchars().
PHP★ 3↓ 3,613/月2026年11月20日
Rust★ 442↓ 157.3K/月2026年11月20日

interactivetools-com/SmartArrayPHP arrays whose fields HTML-encode themselves when echoed, with chainable methods for filtering, sorting, and grouping database rows. XSS-safe by default, with SmartString's encoder behind it: at least 2.5x faster than calling htmlspecialchars() yourself.
PHP★ 0↓ 1,953/月2026年10月23日

TYPO3/html-sanitizerHTML sanitizer, written in PHP, aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values.
PHP★ 29↓ 537.7K/月2026年11月15日

interactivetools-com/SvgSecurityCheckRejects uploaded SVG files that could run script, load an outside resource, or hang a renderer, and never rewrites the ones it accepts. Every rule is an allowlist checked against the file itself, so an accepted file runs no script even when its URL is opened directly, and each rejection has a stable error code.
PHP★ 0↓ 6,222/月2026年12月1日

pieceofcake2/imageCakePHP 2: validate uploaded images by their contents (JPEG, PNG, GIF, WebP and strictly allowlisted SVG)
PHP★ 0↓ 2,039/月2026年10月24日

Safe3/uusec-wafIndustry-leading free, high-performance, AI and semantic technology Web Application Firewall and API Security Gateway (WAAP) - UUSEC WAF.
Shell · C · Lua★ 1,7292026年11月28日
PHP★ 1,014↓ 23.7K/月2026年11月29日

interactivetools-com/HtmlSecurityCheckRejects rich-text HTML that could run script, send the page's data to another host, or mislead the visitor, and never rewrites what it accepts. Element and attribute names, URL schemes and CSS functions must be on allowlists, and CI fails if headless Chrome finds script in any test input the check accepts.
PHP★ 0↓ 6,133/月2026年12月1日
JavaScript · HTML★ 4↓ 304M/月2026年11月30日
JavaScript★ 3↓ 40.2K/月2026年11月13日

NaturalIntelligence/is-unsafeZero-dependency, DOM-free, pure predicate for detecting unsafe strings across HTML, XML, SVG, SQL, SHELL, NOSQL, and REGEX contexts
JavaScript★ 1↓ 97M/月2026年10月23日