Spring Boot actuator env show-values=always exposes secrets
Rule ID: vetkit.spring.actuator.env-values-unmasked
Actuator shows configuration values unmasked (management.endpoint.env.show-values=always or the configprops equivalent). Spring Boot 3 masks passwords and keys by default; this setting prints them to anyone who can reach the endpoint.
Last updated:
Suite: Security
regex
Actuator shows configuration values unmasked (management.endpoint.env.show-values=always or the configprops equivalent). Spring Boot 3 masks passwords and keys by default; this setting prints them to anyone who can reach the endpoint.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use when_authorized together with Spring Security roles for the Actuator endpoints, or keep the default never.
References
Source: packages/engine/rules/sast/config.yml.
Related checks
- Spring Boot YAML show-values: always unmasks actuator env
- Spring Boot actuator exposure.include=* exposes all endpoints
- Spring Boot YAML exposure include "*" exposes all actuators
- Spring Boot 1.x management.security.enabled=false actuator
- Spring Boot actuator env, heapdump or shutdown over HTTP
- Spring Boot YAML exposes sensitive actuator endpoints
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.