qmetrics.net

JS XSS

Whitelist-based HTML sanitizer for XSS prevention

Application SecurityDesktop/CLI app
JS XSS screenshot

The xss module filters untrusted HTML using configurable tag and attribute whitelists. It runs on Node.js, in browsers, and includes a command-line processor.

Overview

xss is a library for sanitizing user-supplied HTML to reduce cross-site scripting risk. It accepts HTML input and removes or escapes tags and attributes that are not permitted by a whitelist you define, with optional custom handlers for matched or ignored elements.

Configuration covers default and custom whitelists, hooks for tags and attributes, HTML and attribute escaping, CSS filtering when style is allowed, stripping of disallowed tags or tag bodies, and optional comment removal. It can return sanitized markup alone or, through a variant API, both the cleaned HTML and a list of removed elements.

The same core logic is exposed for server-side Node.js use, browser script inclusion with shim or AMD loading, and a CLI that processes files or interactive stdin input. Documentation positions it for sites that let users submit formatted HTML, such as forums, blogs, and shops.

Compared with other validators mentioned in the project materials, maintainers publish benchmark figures showing higher throughput for this module on sample test code. Extension points include FilterXSS instances with persistent options and integration with a separate cssfilter module for style values.

Key features

  • Configurable HTML tag whitelist
  • Custom tag and attribute handlers
  • CSS filtering for style attributes
  • Strip or escape disallowed tags
  • Browser and Node.js APIs
  • Command-line file processing
  • Removed-element reporting option
  • HTML comment filtering

Use cases

  • Sanitizing forum or blog user HTML
  • Filtering rich text in web applications
  • Batch cleaning HTML files via CLI
  • Client-side XSS mitigation in browsers
  • Controlled formatting in e-commerce content

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