Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Spring Security permitAll on /admin or /actuator paths

Rule ID: vetkit.java.spring-security.permit-all-sensitive-path

Spring Security permits unauthenticated access to an administrative or management path (/admin/**, /actuator/**, /internal/** or EndpointRequest.toAnyEndpoint()).

Last updated:

Suite: Security

java

Spring Security permits unauthenticated access to an administrative or management path (/admin/**, /actuator/**, /internal/** or EndpointRequest.toAnyEndpoint()).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Require a role for these paths (.hasRole("ADMIN")) and open only the specific public Actuator endpoints you need (EndpointRequest.to("health", "info")).

References

Source: packages/engine/rules/sast/java.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.