🌜
🌞

Best JavaScript XSS Libraries

xss

xss

v1.0.13

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

Last Commit
Aug 16, 2022
GitHub Stargazers
4,666
License
MIT
Contributors
29
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,685
License
(MPL-2.0 OR Apache-2.0)
Contributors
72
x-xss-protection

x-xss-protection

v2.0.0

Middleware to disable the X-XSS-Protection header

Last Commit
Sep 22, 2022
GitHub Stargazers
9,178
License
MIT
Contributors
34
helmet-csp

helmet-csp

v3.4.0

Content Security Policy middleware

Last Commit
Sep 22, 2022
GitHub Stargazers
9,178
License
MIT
Contributors
33
escape-goat

escape-goat

v4.0.0

Escape a string for use in HTML or the inverse

Last Commit
Jul 8, 2022
GitHub Stargazers
443
License
MIT
Contributors
8
xss-filters

xss-filters

v1.2.7

Secure XSS Filters - Just sufficient output filtering to prevent XSS!

Last Commit
Sep 12, 2016
GitHub Stargazers
1,056
License
BSD-2-Clause
Contributors
5
express-validator

express-validator

v6.14.2

Express middleware for the validator module.

Last Commit
Sep 25, 2022
GitHub Stargazers
5,580
License
MIT
Contributors
99
hast-util-sanitize

hast-util-sanitize

v4.0.0

hast utility to sanitize nodes

Last Commit
May 28, 2022
GitHub Stargazers
34
License
MIT
Contributors
5
rehype-sanitize

rehype-sanitize

v5.0.1

rehype plugin to sanitize HTML

Last Commit
Apr 1, 2022
GitHub Stargazers
72
License
MIT
Contributors
4
secure-filters

secure-filters

v1.1.0

Anti-XSS filters for security

Last Commit
Feb 12, 2022
GitHub Stargazers
137
License
BSD-3-Clause
Contributors
4
isomorphic-dompurify

isomorphic-dompurify

v0.20.0

Makes it possible to use DOMPurify on server and client in the same way.

Last Commit
Sep 13, 2022
GitHub Stargazers
157
License
MIT
Contributors
2
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
vue-dompurify-html

vue-dompurify-html

v3.0.0

Safe replacement for the v-html directive

Last Commit
Sep 24, 2022
GitHub Stargazers
110
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
html-purify

html-purify

v1.1.0

HTML5 Purifier

Last Commit
Feb 18, 2016
GitHub Stargazers
40
License
BSD-2-Clause
Contributors
3
node-guard

node-guard

v1.0.0

General purpose I/O module to add following http headers to keep your webpages securing them from malware attacks. This module can be used with any node http server.

Last Commit
Jan 10, 2016
GitHub Stargazers
5
License
MIT
Contributors
1
pug-plugin-trusted-types

pug-plugin-trusted-types

v2.0.2

XSS prevention for Pug templates with typesafe exceptions

Last Commit
-
GitHub Stargazers
4
License
(MIT OR Apache-2.0)
Contributors
1
polymer-resin

polymer-resin

v2.0.1

XSS mitigation for Polymer webcomponents that uses safe html type contracts

Last Commit
May 16, 2019
GitHub Stargazers
17
License
Contributors
1