CSRF Sync

JSON →
library 4.2.1 ·javascript
verified May 27, 2026

CSRF Sync is a utility package designed to provide robust stateful Cross-Site Request Forgery (CSRF) protection for Express applications, utilizing the Synchroniser Token Pattern. Developed in response to the deprecation of `csurf` and the perceived complexity or limited scope of alternative solutions, `csrf-sync` (current stable version 4.2.1) aims for a targeted and simplified implementation. It requires a server-side session management middleware like `express-session` to store tokens. The library focuses on providing the essential components for CSRF protection without imposing a full solution, allowing developers to integrate it flexibly. It is actively maintained with regular updates and follows a clear versioning strategy, with significant changes typically highlighted in major version bumps.

total hits 22
actors 7 distinct systems
last hit 1d ago AhrefsBot
ByteDance
7
MetaBot
4
GPTBot
2
ChatGPT-User
2
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France · 🇪🇸 Spain