Summary
Thymeleaf versions before 3.1.6.RELEASE contain a restricted expression mode bypass that can escalate to server-side template injection. The CVSS 4.0 score is 9.5 (critical).
What happened
CVE-2026-136410 (CWE-917) describes a restricted expression mode bypass in Thymeleaf. According to the description, unauthenticated remote attackers can perform forbidden actions through improperly scoped expression objects. If they can inject input into restricted contexts, such as preprocessing, th:utext, th:on* handlers, fragment names or TEXT templates, they can escalate to server-side template injection. The CVSS 4.0 vector indicates network access, high attack complexity, no privileges or user interaction required, and high impact on confidentiality, integrity and availability.
Why it matters
The CVSS 4.0 score is 9.5, with critical severity per CNA:VulnCheck (vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H). The source does not state that this vulnerability is being actively exploited, nor does it provide evidence of exploitation before disclosure.
Affected products and versions
thymeleaf, thymeleaf-spring5 and thymeleaf-spring6 (Maven), versions < 3.1.6.RELEASE.
| Product | Versions | Fixed in |
|---|---|---|
| thymeleaf thymeleaf | < 3.1.6.RELEASE | — |
| thymeleaf thymeleaf-spring5 | < 3.1.6.RELEASE | — |
| thymeleaf thymeleaf-spring6 | < 3.1.6.RELEASE | — |
Action recommended by the source
The source does not include an explicit fix or mitigation instruction. Its references include a vendor advisory on GitHub and the release notes for 3.1.6.RELEASE, which are worth consulting for the vendor's guidance.
Sources and references
- https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-2wmw-5fmc-m25v — CVE Program
- https://github.com/thymeleaf/thymeleaf/releases/tag/thymeleaf-3.1.6.RELEASE — CVE Program
- https://www.vulncheck.com/advisories/thymeleaf-before-3.1.6-release-restricted-expression-mode-bypass-via-expression-objects — CVE Program
Weaknesses (CWE): CWE-917
Relevant change history
Published
Advisory published.