What is going on
Cross-site scripting (XSS) vulnerability introduced in Cascade-generated templates. User input is rendered without HTML escaping, allowing attackers to inject malicious JavaScript that runs in other users' browsers.
This is a critical security issue requiring immediate fix.
Error messages you might see
Common causes
- Cascade used th:utext='${variable}' instead of th:text for unescaped output
- User comment or name rendered directly without sanitization
- Cascade removed HTML escaping in frontend template or disabled it
How to fix it
Use th:text='${variable}' instead of th:utext to enable HTML escaping. Sanitize user input server-side if HTML is needed. Use security libraries like OWASP ESAPI or DOMPurify for sanitization. Never render user input directly without escaping. Review all template variables for proper escaping.
Getting help takes about a minute
No hiring, no back and forth. A real person looks at your app.
-
1
Describe it
Tell us what you need in plain words. You don't have to be technical or have an account to start.
-
2
Free 15-minute call
A verified developer calls you. Many tasks are sorted right there, and it costs nothing.
-
3
Pay after you approve
If there is more to do, you get one fixed price up front. You pay only once you are happy.
Real people, reviewed by hand
Developers who do this every day
Every developer is approved by our team before they can take a task. Describe yours and the first one who is free picks it up.
Get helpQuestions
How do I prevent XSS in templates?
Always escape user input. Thymeleaf: use th:text not th:utext. Never render user data as HTML.
When should I use utext?
Only if you control the HTML content (static content from database). Never with user-provided input.