8 Best Node.js XSS Libraries

List hand-picked by Openbase Experts
Learn More

dom

dompurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

License Icon
License: (MPL-2.0 OR Apache-2.0)
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
2Easy to Use
1Performant
GitHub Stars
8K
Weekly Downloads
2M
Last Commit
7d ago

x-xss-protection

Help secure Express apps with various HTTP headers

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
9K
Weekly Downloads
606K
Last Commit
11d ago

xss-filters

Secure XSS Filters.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
50K
Last Commit
5yrs ago

showdown-xss-filter

XSS filter for the Showdown markdown converter

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
30
Weekly Downloads
5K
Last Commit
6yrs ago
xc

xss-clean

Middleware to sanitize user input

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
47
Weekly Downloads
2K
Last Commit
6yrs ago
ep

ember-purify

Purify your html content before marking it safe

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
16
Weekly Downloads
1K
Last Commit
1yr ago
xss

xsslint

Find potential XSS vulnerabilities

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
26
Weekly Downloads
380
Last Commit
2yrs ago

secure-filters

Anti-XSS Security Filters for EJS and More

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
136
Weekly Downloads
249
Last Commit
5yrs ago