github.com/gorilla/csrf

gorilla/csrf

Package csrf (gorilla/csrf) provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services.

69

Decision Signals

Health score 69/100, confidence 80/100.

Review
Maintenance 43
Adoption 77
Security 70
Maturity 100
Developer DX 81
Confidence 80

Install

go get github.com/gorilla/csrf

Package Data

updated May 28, 2026
Latest versionv1.7.3
Imported by0 packages
Stars1.2K
Forks170
Last activity1 years ago
Latest releasev1.7.3 (1 years ago)
LicenseBSD-3-Clause
Known vuln records0

API Surface

0 symbols
SymbolKindSynopsis
No symbol preview available from pkg.go.dev for this refresh.

Maintained Alternatives

limited recent repository activity

#1 Caddy

Package caddy implements the Caddy server manager.

Go Security Middleware 72.8K stars 510 imported-by 100% confidence
97

#2 secure

Package secure is an HTTP middleware for Go that facilitates some quick security wins.

Go Security Middleware 2.3K stars 921 imported-by 65% confidence
91

Similar Packages

Go Security Middleware

#1 Caddy

Package caddy implements the Caddy server manager.

Go Security Middleware 72.8K stars 510 imported-by 100% confidence
97

#2 secure

Package secure is an HTTP middleware for Go that facilitates some quick security wins.

Go Security Middleware 2.3K stars 921 imported-by 65% confidence
91

#3 nosurf

Package nosurf implements an HTTP handler that mitigates Cross-Site Request Forgery Attacks.

Go Security Middleware 1.7K stars 2.5K imported-by 100% confidence
81

#4 sslmgr

SSL certificates made easy with a high level wrapper around acme/autocert.

Go Security Middleware 0 stars 1 imported-by 80% confidence
53

#5 multikey

An n-out-of-N keys encryption/decryption framework based on Shamir's Secret Sharing algorithm.

Go Security Middleware 0 stars 0 imported-by 80% confidence
42