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

49Health
Library PyPI

python-ipware

Retrieve a client's real IP address from HTTP request headers, with proxy handling.

43
MIT
Used by 2
86Health
Library PyPI

Presidio Analyzer

The PII detection engine behind Presidio, combining NER, regex, and checksum recognizers

11,485
MIT
Used by 1
86Health
Library PyPI

Presidio Anonymizer

Replace detected PII in text with masked, hashed, encrypted, or redacted values

11,485
MIT
Used by 1
46Health
Library Composer

Laravel CORS

CORS middleware that adds cross-origin headers to Laravel applications.

6,227
MIT
Used by 1
73Health
Library npm

serialize-javascript

Serializes JavaScript values-including functions, RegExps, Dates, Maps, Sets, and BigInts-into a superset of JSON that's safe to embed directly in an HTML script tag.

2,926
BSD 3
Used by 1
76Health
Library Cargo

adblock-rust

Brave's high-performance Rust ad-blocking engine, available as a library for any project.

2,882
MPL-2.0
Used by 1
50Health
Library Composer

Mews Purifier

A Laravel integration of HTMLPurifier that sanitizes user-supplied HTML to prevent XSS while preserving safe, well-formed markup.

1,979
MIT
Used by 1
61Health
Library Composer

Gregwar Captcha

Generate distorted CAPTCHA images in PHP to stop bots.

1,820
MIT
Used by 1
52Health
Library npm

disposable-email-domains

A community-maintained JSON list of 120,000+ known disposable email domains for filtering throwaway signups.

1,376
MIT
Used by 1
60Health
Library PyPI

django-ipware

A Django application to reliably retrieve a client's real IP address from the request

1,063
MIT
Used by 1
44Health
Library Composer

bjeavons/zxcvbn-php

Realistic PHP password strength estimation via pattern matching and entropy

870
MIT
Used by 1
43Health
Library npm

graphql-query-complexity

Query complexity analysis and validation to protect graphql-js servers

748
MIT
Used by 1
60Health
Library PyPI

RestrictedPython

Compiles a restricted subset of Python so you can define a trusted boundary for running untrusted code.

747
Other
Used by 1
77Health
Library Cargo

ammonia

A fast, allowlist-based HTML sanitization library for Rust built on the html5ever browser-grade parser.

682
Other
Used by 1
71Health
Library PyPI

simpleeval

A single-file Python library for safely evaluating user-supplied expressions without exposing full eval() access.

615
MIT
Used by 1
42Health
SDK Composer

laravel-recaptcha

Drop-in Laravel package for embedding and validating Google reCAPTCHA v2 and v3 in your forms.

516
MIT
Used by 1
41Health
SDK npm

react-google-recaptcha-v3

React provider, hook, and HOC for integrating invisible Google reCAPTCHA v3 (and Enterprise) verification into your app.

467
MIT
Used by 1
51Health
Library Cargo

svg-hush

A Rust library and CLI that strips scripting, cross-origin links, and other XSS vectors from untrusted SVG files.

435
Other
Used by 1
44Health
Library PyPI

scrubadub

scrubadub finds and redacts personally identifiable information from free text using a pluggable, locale-aware pipeline of detectors and post-processors.

433
Apache 2.0
Used by 1
42Health
Library PyPI

pathvalidate

A zero-dependency Python library that sanitizes and validates filenames, file paths, and LTSV labels across Windows, Linux, macOS, and POSIX platforms.

296
MIT
Used by 1
44Health
Library Composer

ExerciseHTMLPurifierBundle

Symfony integration for HTMLPurifier to sanitize untrusted HTML and prevent XSS

278
MIT
Used by 1
36Health
Library Cargo

zxcvbn-rs

A Rust port of Dropbox's zxcvbn password strength estimator, scoring passwords 0-4 with pattern matching instead of arbitrary composition rules.

274
MIT
Used by 1
80Health
Library PyPI

Asteval

A safe, minimalistic evaluator of Python expressions and statements using the ast module.

223
MIT
Used by 1
37Health
Library npm

express-mongo-sanitize

Express middleware that strips MongoDB operator injection payloads from req.body, req.query, req.params, and req.headers before they reach your database queries.

220
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