CVE-2026-57894: Custom Csrf Cookie Protection

Custom cookie-based CSRF protection implementations are prone to token leakage and validation flaws. Use standard CSRF middleware or Origin and Fetch-Metadata header validation.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-57894-custom-csrf-cookie-protection --engine opengrep

Description

Custom cookie-based CSRF protection implementations are prone to token leakage and validation flaws. Use standard CSRF middleware or Origin and Fetch-Metadata header validation.