Skip to content
vetkitChecksChangelogDocumentation

vetkit.spring.error.stacktrace-exposed-yaml

Spring Boot always includes stack traces in error responses (include-stacktrace: always). Every client sees internal classes, library versions and sometimes data.

Last updated:

Suite: Security

yaml

Spring Boot always includes stack traces in error responses (include-stacktrace: always). Every client sees internal classes, library versions and sometimes data.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use the default (never) or on_param only in non-production profiles.

References

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

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.