Skip to content

Disabled CSRF (ARCH8125)

Key kotlin.security.disabled-csrf · Severity warning · Category security · CWE CWE-352

Flags csrf().disable() / csrf { disable() } in a Spring Security configuration.

http.csrf { it.disable() }
http.csrf { it.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()) }

Keep CSRF on for cookie-authenticated endpoints; disable only for token-only stateless APIs, per route.