🌜
🌞

Best JavaScript XSS Sanitizer Libraries

dompurify

dompurify

v2.3.10

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Last Commit
Sep 2, 2022
GitHub Stargazers
9,693
License
(MPL-2.0 OR Apache-2.0)
Contributors
72
express-sanitizer

express-sanitizer

v1.0.6

Express middleware for the sanitizer module.

Last Commit
Apr 15, 2021
GitHub Stargazers
45
License
MIT
Contributors
3
express-xss-sanitizer

express-xss-sanitizer

v1.1.2

Express 4.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack.

Last Commit
Aug 6, 2022
GitHub Stargazers
8
License
MIT
Contributors
2
mongoose-sanitizer

mongoose-sanitizer

v1.0.0

Mongoose Sanitizer Plugin

Last Commit
-
GitHub Stargazers
10
License
MIT
Contributors
1
express-caja-sanitizer

express-caja-sanitizer

v1.0.1

An express middleware inspired from express-sanitizer but additionally sanitizes URL params. It also gives an option to provide a preprocessor function to decide whether a (key, value) pair should be sanitized or not.

Last Commit
-
GitHub Stargazers
-
License
MIT
Contributors
1
ember-purify

ember-purify

v5.0.1

Ember addon to help purify DOM content

Last Commit
Jun 7, 2020
GitHub Stargazers
17
License
MIT
Contributors
5
express-sanitize-escape

express-sanitize-escape

v1.1.0

Express middleware for the sanitizer module using Caja's HTML Sanitizer and HTML escape using htmlencode.

Last Commit
Jun 5, 2017
GitHub Stargazers
7
License
MIT
Contributors
5
mongoose-sanitize

mongoose-sanitize

v1.1.0

Mongoose Sanitizer Plugin

Last Commit
-
GitHub Stargazers
1
License
MIT
Contributors
1
@nemospeculo/express-sanitized

@nemospeculo/express-sanitized

v1.0.4

Express middleware for the sanitizer module using Caja's HTML Sanitizer.

Last Commit
-
GitHub Stargazers
1
License
MIT
Contributors
4
express-sanitized-escaped

express-sanitized-escaped

v1.1.1

Express middleware for the sanitizer module using Caja's HTML Sanitizer and HTML escape using htmlencode. Forked from express-sanitize-escape as the original package is no longer maintained

Last Commit
-
GitHub Stargazers
-
License
MIT
Contributors
6
express-auto-sanitize

express-auto-sanitize

v1.1.0

Express middleware that automatically sanitize user inputs

Last Commit
-
GitHub Stargazers
1
License
MIT
Contributors
1
req-sanitizer

req-sanitizer

v0.2.1

simple node middleware to sanitize req.body object

Last Commit
Oct 17, 2018
GitHub Stargazers
1
License
MIT
Contributors
1
express-sanitized

express-sanitized

v0.5.1

Express middleware for the sanitizer module using Caja's HTML Sanitizer.

Last Commit
Aug 16, 2019
GitHub Stargazers
5
License
MIT
Contributors
3
sanitized

sanitized

v1.1.5

Recursive function that'll sanitize a string or ALL strings in an object or array.

Last Commit
-
GitHub Stargazers
3
License
ISC
Contributors
1
@neuralegion/class-sanitizer

@neuralegion/class-sanitizer

v0.3.4

Class-based sanitization in TypeScript using decorators

Last Commit
-
GitHub Stargazers
5
License
Apache-2.0
Contributors
4
ember-dompurify

ember-dompurify

v0.3.4

An Ember addon that wraps DOMPurify.

Last Commit
Jun 20, 2018
GitHub Stargazers
7
License
MIT
Contributors
4