Skip to content
JS
Package

csrf-csrf

A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.

v4.0.3, 27 May 2025ISCESM + CommonJSTypes: BundledHTTP servers and web frameworksSecurity
$ npm install csrf-csrf

Key numbers

As of 25 Sept 2026
Weekly downloads
137.6k
+180% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v4.0.3
GitHub stars
196
25 forks
Open issues / PRs
6 / 2
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 239.6k (16 Jun 2026)Low 40k (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.

137,643 downloads last week, 686,867 in the last month. The 12-month change of +180% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
4.0.3, 27 May 20251 year ago
First published
-
Last push to GitHub
19 Aug 202636 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
2
Commits, last 52 weeks
1
Dependents on npm
27

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
43 kB
Dependencies (1)
http-errors
npm install csrf-csrf
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csrf-csrf@4.0.3/
  • unpkghttps://unpkg.com/csrf-csrf@4.0.3/
  • esm.shhttps://esm.sh/csrf-csrf@4.0.3
PackageWeekly downloadsGzipLast releaseModuleComparison
@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, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.