Thymeleaf
Improper restriction of the scope of accessible objects in Thymeleaf expressions
Thymeleaf is a server-side Java template engine for web and standalone environments. Versions 3.1.3.RELEASE and prior contain a security bypass vulnerability in the expression execution mechanisms. Although the library provides mechanisms to prevent expression injection, it fails to properly restrict the scope of accessible objects, allowing specific potentially sensitive objects to be reached from within a template. If an application developer passes unvalidated user input directly to the template engine, an unauthenticated remote attacker can bypass the library's protections to achieve Server-Side Template Injection (SSTI). This issue has ben fixed in version 3.1.4.RELEASE.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.1.4.RELEASE
Fixed in 3.1.4.RELEASE
- < 3.1.4.RELEASE
Fixed in 3.1.4.RELEASE
- < 3.1.4.RELEASE
Fixed in 3.1.4.RELEASE
Mitigation
Upgrade thymeleaf to 3.1.4.RELEASE or later.
Upgrade org.thymeleaf:thymeleaf-spring5 to 3.1.4.RELEASE or later.
Upgrade org.thymeleaf:thymeleaf-spring6 to 3.1.4.RELEASE or later.
References
- Vendor advisory github.com/thymeleaf/thymeleaf/security/adviso…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| xiaoqiMikko/thymeleaf-check | 4 Sep 2026 +140 d | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.