CVE-2026-136410
Thymeleaf before 3.1.6.RELEASE contains a restricted expression mode bypass vulnerability that allows unauthenticated remote attackers to perform forbidden act…
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages. The attack can reach beyond the vulnerable component itself.
Affected products (Thymeleaf)
| Product | Affected versions |
|---|---|
| Thymeleaf | before 3.1.6.RELEASE |
| Thymeleaf-spring5 | before 3.1.6.RELEASE |
| Thymeleaf-spring6 | before 3.1.6.RELEASE |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-2wmw-5fmc-m25v
- https://github.com/thymeleaf/thymeleaf/releases/tag/thymeleaf-3.1.6.RELEASE
- https://www.vulncheck.com/advisories/thymeleaf-before-3.1.6-release-restricted-expression-mode-bypass-via-expression-objects
- https://github.com/advisories/GHSA-xh7h-9cr4-vfvf
- https://nvd.nist.gov/vuln/detail/CVE-2026-136410