Packages

Input Sanitization & Security Packages

Input sanitization, XSS prevention, and application-security utilities that clean untrusted input before it reaches your rendering or storage layer (DOMPurify).

123 packages

Packages in Input Sanitization & Security

31Health
Library PyPI

confusable_homoglyphs

Detect dangerous Unicode homoglyphs and mixed-script strings to stop impersonation attacks

166
MIT
Used by 1
77Health
Library Cargo

decancer

Rust library that strips unicode confusables, homoglyphs, and leetspeak from text for moderation and search normalization.

132
MIT
Used by 1
44Health
Library PyPI

cvss

Python library for computing CVSS v2, v3, and v4 vulnerability scores, with an interactive calculator built in.

129
Other
Used by 1
51Health
Library Cargo

seccompiler

Compiles Rust and JSON seccomp filter definitions into loadable BPF programs for Linux syscall jailing.

126
Apache 2.0
Used by 1
28Health
Library PyPI

Advocate

A drop-in wrapper around Python's requests library that blocks SSRF attacks by validating every socket connection before it opens.

95
Apache 2.0
Used by 1
36Health
Library PyPI

Flask-Talisman

A small Flask extension that sets HTTP security headers to protect apps from XSS, clickjacking, and downgrade attacks.

87
Apache 2.0
Used by 1
35Health
Library npm

leo-profanity

A zero-dependency profanity filter for JavaScript and TypeScript with multi-language dictionary support.

75
MIT
Used by 1
25Health
Library npm

js-string-escape

Escapes strings into safe JavaScript string literals, correctly handling quotes, backslashes, and all four ECMAScript line-terminator characters.

72
MIT
Used by 1
48Health
Library Cargo

html-escape

Context-aware HTML encoding and entity decoding for Rust, with no-std support.

58
MIT
Used by 1
44Health
Library Cargo

libseccomp

Safe, ergonomic Rust bindings for the libseccomp Linux syscall-filtering library

49
Other
Used by 1
24Health
Library Composer

HTMLawed

A single-file PHP library that sanitizes HTML input to block XSS attacks and enforce standards-compliant markup.

42
Other
Used by 1
56Health
SDK PyPI

altcha

Create and verify ALTCHA proof-of-work CAPTCHA challenges in Python with a zero-dependency, fully typed library.

33
MIT
Used by 1
34Health
Library PyPI

tarsafe

Secure drop-in replacement for Python's tarfile module that blocks directory-traversal and symlink attacks during extraction.

24
MIT
Used by 1
22Health
Library npm

valid-data-url

Lightweight regex-based validator that checks whether a string is a well-formed RFC 2397 data URL.

23
MIT
Used by 1
22Health
Library npm

saslprep

RFC 4013 SASLprep string normalization for usernames and passwords used in SASL/SCRAM authentication.

21
MIT
Used by 1
23Health
Library Cargo

unicode-security

Detects Unicode-based security risks in Rust strings, from confusable homoglyphs to mixed-script identifiers, per UTS #39.

19
Other
Used by 1
21Health
Library Cargo

sanitize-html-rs

A Rust library for sanitizing untrusted HTML using rule-based allowlists of elements, attributes, and URL patterns.

16
MIT
Used by 1
52Health
Library Composer

Joomla Filter

Joomla Framework package for sanitizing and validating input and cleaning output in PHP

15
Other
Used by 1
47Health
Library PyPI

quickjs-rs

Sandboxed JavaScript and TypeScript execution for Python, running QuickJS inside a WebAssembly sandbox.

13
MIT
Used by 1
18Health
Library npm

expr-eval-fork

A security-patched fork of expr-eval for safely parsing and evaluating math expressions in JavaScript without native eval().

7
MIT
Used by 1
62Health
Library npm

marked-mangle

A tiny marked.js extension that mangles mailto links into randomized HTML character references to block email-harvesting bots.

6
MIT
Used by 1
17Health
Library Cargo

capng

A safe, idiomatic Rust wrapper around libcap-ng for managing Linux POSIX capabilities.

5
Other
Used by 1
15Health
Library Cargo

clearurls

A Rust library that strips tracking parameters and redirects from URLs using the crowd-sourced ClearURLs rules.

5
Other
Used by 1
18Health
Library PyPI

rfc3986-validator

A pure Python regex-based validator for RFC3986 URIs and URI references

5
MIT
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers