CVE-2025-70986: Shiro Missing Csrf Protection

The Shiro configuration configures filter chains without including CSRF protection. Apache Shiro does not provide built-in CSRF defense natively, requiring manual filter configuration. Ensure a custom CSRF filter is added to the Shiro filter chains to protect state-changing requests against Cross-Site Request Forgery (CSRF).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2025-70986-shiro-missing-csrf-protection --engine opengrep

Description

The Shiro configuration configures filter chains without including CSRF protection. Apache Shiro does not provide built-in CSRF defense natively, requiring manual filter configuration. Ensure a custom CSRF filter is added to the Shiro filter chains to protect state-changing requests against Cross-Site Request Forgery (CSRF).