Web security libraries
Set safe headers, limit request rates and clean the HTML that users send. We rate 10; DOMPurify leads with 8.7 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| DOMPurify | 402M | ×6.9 | 18k | 353 | Nov 2026 | 26 |
| Helmet | 92M | ×4.2 | 11k | 72 | Jul 2026 | 0 |
| express-rate-limit | 388M | ×10 | 3.3k | 136 | Nov 2026 | 1 |
| cors | 499M | ×5.1 | 6.2k | 10 | Jan 2026 | 0 |
| rate-limiter-flexible | 19M | ×3.4 | 3.6k | 123 | Nov 2026 | 0 |
| Upstash Ratelimit | 14M | ×12 | 2.1k | 24 | Nov 2026 | 0 |
| sanitize-html | 73M | ×4.7 | 4.7k | 377 | Nov 2026 | 10 |
| csrf-csrf | 1.1M | ×4.2 | 197 | 3 | Nov 2026 | 0 |
| Arcjet | 40k | ×2.5 | 700 | 648 | Nov 2026 | 0 |
| js-xss | 31M | ×2.3 | 5.3k | 11 | Oct 2026 | 0 |