Package
express-xss-sanitizer
Express 4.x and 5.x middleware which sanitizes user input data (in req.body, req.query, req.headers and req.params) to prevent Cross Site Scripting (XSS) attack.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 12.1k
- -65% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 6 months ago
- v2.0.2
- GitHub stars
- 28
- 11 forks
- Open issues / PRs
- 2 / 0
- Contributors
- -
- Commits, last 52 weeks
- 4
Downloads
Last week 2026-09-15 to 2026-09-21
12,125 downloads last week, 58,999 in the last month. The 12-month change of -65% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.0.2, 25 Mar 20266 months ago
- First published
- -
- Last push to GitHub
- 25 Mar 2026183 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 0
- Commits, last 52 weeks
- 4
- Dependents on npm
- 11
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 47 kB
- Dependencies (1)
sanitize-html
npm install express-xss-sanitizer- jsDelivr
https://cdn.jsdelivr.net/npm/express-xss-sanitizer@2.0.2/ - unpkg
https://unpkg.com/express-xss-sanitizer@2.0.2/ - esm.sh
https://esm.sh/express-xss-sanitizer@2.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| cors | 58m | - | 8 months ago | CommonJS | - |
| corser | 5.1m | - | 10 years ago | CommonJS | - |
| recaptcha2 | 9.5k | - | 7 years ago | CommonJS | - |
| express-rate-limit | 45.1m | - | 27 days ago | ESM + CommonJS | - |
| express-sanitizer | 10.8k | - | 5 years ago | CommonJS | - |
| feature-policy | 336.5k | - | 5 years ago | CommonJS | - |
| express-caja-sanitizer | 25.1k | - | 10 years ago | CommonJS | - |
| permissions-policy | 11.9k | - | 5 years ago | CommonJS | - |
Indexability: Indexed.