Escape template output that reflects request or model data
Thymeleaf `th:utext`, JSP scriptlets, and FreeMarker `?no_esc` patterns must not render untrusted request or model values without an explicit sanitization strategy.
#Metadata
#Why it matters
Non-escaped template sinks turn reflected input into XSS, which compromises browser sessions and administrative workflows.
#Remediation
Use Thymeleaf `th:text`, avoid raw JSP expressions for request data, and keep FreeMarker auto-escaping on unless a vetted sanitizer wraps dynamic HTML.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/java/java.security.template-unescaped-user-output.rule.yaml.