Package
csurf
CSRF token middleware
Deprecated on npm
This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussionsKey numbers
As of 25 Sept 2026
- Weekly downloads
- 322.6k
- -11% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 4
- Direct, from package.json
- Last release
- 6 years ago
- v1.11.0
- GitHub stars
- -
- Open issues / PRs
- - / -
- Contributors
- -
- Commits, last 52 weeks
- -
Downloads
Last week 2026-09-15 to 2026-09-21
322,646 downloads last week, 1,552,352 in the last month. The 12-month change of -11% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 029 in total
- Latest version
- 1.11.0, 19 Jan 20206 years ago
- First published
- 15 May 2013
- Last push to GitHub
- -
- Repository archived
- -
- Open issues
- -
- Open pull requests
- -
- Commits, last 52 weeks
- -
- Dependents on npm
- -
Major versions
- v1 first release 1.0.0, 5 Mar 2014
- v0 first release 0.0.1, 15 May 2013
Recent releases
| Version | Published |
|---|---|
| 1.11.0 | 19 Jan 2020 |
| 1.10.0 | 23 Apr 2019 |
| 1.9.0 | 27 May 2016 |
| 1.8.3 | 11 Jun 2015 |
| 1.8.2 | 10 May 2015 |
| 1.8.1 | 4 May 2015 |
| 1.8.0 | 8 Apr 2015 |
| 1.7.0 | 15 Feb 2015 |
| 1.6.6 | 1 Feb 2015 |
| 1.6.5 | 9 Jan 2015 |
| 1.6.4 | 30 Dec 2014 |
| 1.6.3 | 9 Nov 2014 |
| 1.6.2 | 14 Oct 2014 |
| 1.6.1 | 6 Sept 2014 |
- Module format
- -Not determined from package.json
- TypeScript types
- None
- Node.js engine range
- >= 0.8.0
- Runtimes
- -
- Unpacked size (npm)
- 23 kB
- Dependencies (4)
csrfcookiehttp-errorscookie-signature
npm install csurf- jsDelivr
https://cdn.jsdelivr.net/npm/csurf@1.11.0/ - unpkg
https://unpkg.com/csurf@1.11.0/ - esm.sh
https://esm.sh/csurf@1.11.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| csrf-csrf | 137.6k | - | 1 year ago | ESM + CommonJS | - |
| csrf-sync | 122.1k | - | 1 year ago | ESM + CommonJS | - |
| @dr.pogodin/csurf | 19.3k | - | 3 days ago | ESM only | - |
| @sailshq/csurf | 22.8k | - | 1 year ago | - | - |
| express-mongo-sanitize | 202.9k | - | 4 years ago | CommonJS | - |
| sectxt | 5.4k | - | 5 years ago | CommonJS | - |
| helmet-crossdomain | 324.4k | - | 7 years ago | CommonJS | - |
| pompelmi | 5.5k | - | 4 months ago | ESM + CommonJS | - |
Indexability: Not indexed (discovery only): deprecated; GitHub data not fetched yet.