Skip to content
JS
Package

csurf

CSRF token middleware

v1.11.0, 19 Jan 2020MIT-Types: NoneHTTP servers and web frameworksSecurity
$ npm install csurf
Deprecated on npm
This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions

Key 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
0200k400k600kSept 2025Mar 2026Sept 2026High 483.2k (10 Mar 2026)Low 222.3k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v1 first release 1.0.0, 5 Mar 2014
  2. v0 first release 0.0.1, 15 May 2013

Recent releases

VersionPublished
1.11.019 Jan 2020
1.10.023 Apr 2019
1.9.027 May 2016
1.8.311 Jun 2015
1.8.210 May 2015
1.8.14 May 2015
1.8.08 Apr 2015
1.7.015 Feb 2015
1.6.61 Feb 2015
1.6.59 Jan 2015
1.6.430 Dec 2014
1.6.39 Nov 2014
1.6.214 Oct 2014
1.6.16 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csurf@1.11.0/
  • unpkghttps://unpkg.com/csurf@1.11.0/
  • esm.shhttps://esm.sh/csurf@1.11.0
PackageWeekly downloadsGzipLast releaseModuleComparison
csrf-csrf137.6k-1 year agoESM + CommonJS-
csrf-sync122.1k-1 year agoESM + CommonJS-
@dr.pogodin/csurf19.3k-3 days agoESM only-
@sailshq/csurf22.8k-1 year ago--
express-mongo-sanitize202.9k-4 years agoCommonJS-
sectxt5.4k-5 years agoCommonJS-
helmet-crossdomain324.4k-7 years agoCommonJS-
pompelmi5.5k-4 months agoESM + CommonJS-
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated; GitHub data not fetched yet.