Description
Thymeleaf is a server-side Java template engine for web and standalone environments. Prior to 3.1.5.RELEASE, a security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI). This vulnerability is fixed in 3.1.5.RELEASE.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| thymeleaf | thymeleaf | < 3.1.5.RELEASE | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
HORKimhab/CVE-2026-41901 ★ 0 · May 23, 2026
CVE-2026-41901
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.thymeleaf:thymeleaf | < 3.1.5.RELEASE | 3.1.5.RELEASE | GHSA-c9ph-gxww-7744 |
| Maven | org.thymeleaf:thymeleaf-spring5 | < 3.1.5.RELEASE | 3.1.5.RELEASE | GHSA-c9ph-gxww-7744 |
| Maven | org.thymeleaf:thymeleaf-spring6 | < 3.1.5.RELEASE | 3.1.5.RELEASE | GHSA-c9ph-gxww-7744 |