vetkit.java.template-injection.spring-view-name
A Spring MVC view name is built from request data, which can lead to template expression injection.
Last updated:
Suite: Security
java
A Spring MVC view name is built from request data, which can lead to template expression injection.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Return fixed view names and select between them with an allow-list; never concatenate request values into a view name (Thymeleaf evaluates __${...}__ preprocessing expressions in it).
References
Source: packages/engine/rules/sast/java.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.