CVE-2026-136410: Thymeleaf before 3.1.6.RELEASE Restricted Expression Mode Bypass via Expression Objects
Thymeleaf before 3.1.6.RELEASE contains a restricted expression mode bypass vulnerability that allows unauthenticated remote attackers to perform forbidden actions through improperly scoped expression objects. Attackers can inject input into restricted contexts like preprocessing, th:utext, th:on handlers, fragment names, or TEXT templates to escalate server-side template injection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.1.6.RELEASE
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using Thymeleaf versions before 3.1.6.RELEASE are affected when untrusted input can reach restricted template-expression contexts, including preprocessing, th:utext, th:on* handlers, fragment names, or TEXT templates.
What does an attacker need to exploit this issue?
The attacker does not need authentication or user interaction, but must be able to inject input into a restricted Thymeleaf expression context. The bypass uses improperly scoped expression objects to perform actions that restricted mode should forbid.
How can I identify potentially affected applications?
Identify applications running Thymeleaf before 3.1.6.RELEASE, then review whether externally controlled values can be incorporated into preprocessing, th:utext, th:on* handlers, fragment names, or TEXT templates. Such input paths can enable escalation of server-side template injection.