CVE-2025-7906: Shiro Missing Csrf Protection

Shiro configuration establishes a catch-all mapped route (`/**` or `/*`) without including a CSRF protection filter. As Shiro does not provide native CSRF enforcement by default, missing an explicit anti-CSRF filter leaves authenticated endpoints vulnerable to Cross-Site Request Forgery. Include a CSRF filter in the filter chain for state-changing endpoints.

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

Description

Shiro configuration establishes a catch-all mapped route (`/**` or `/*`) without including a CSRF protection filter. As Shiro does not provide native CSRF enforcement by default, missing an explicit anti-CSRF filter leaves authenticated endpoints vulnerable to Cross-Site Request Forgery. Include a CSRF filter in the filter chain for state-changing endpoints.