Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Spring Security anyRequest().permitAll() in Kotlin

Rule ID: vetkit.kotlin.spring-security.permit-all-requests

Spring Security permits every request that is not matched by an earlier rule (anyRequest().permitAll(), authorize(anyRequest, permitAll) or web.ignoring() on /**).

Last updated:

Suite: Security

kotlin

Spring Security permits every request that is not matched by an earlier rule (anyRequest().permitAll(), authorize(anyRequest, permitAll) or web.ignoring() on /**).

Category: SECURITY · Engine rule severity: INFO

How to fix it

Deny by default (authorize(anyRequest, authenticated) or denyAll) and list public endpoints explicitly, so new endpoints are protected unless opened on purpose.

References

Source: packages/engine/rules/sast/kotlin.yml.

Related checks

Check your own repository for this

vetkit runs this rule as part of a repository audit, alongside secret scanning, dependency vulnerabilities, code quality and AI code risk checks. It reads a temporary checkout and never executes your code.

Start with the free Security Quick Scan · See how the platform works

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.