CVE-2026-40477
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.1
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS probability
- 0.85%
- CWE
- CWE-917, CWE-1336
- Published
- 2026-04-17
- Last modified
- 2026-08-17
Affected products
- thymeleaf thymeleaf
- thymeleaf org.thymeleaf:thymeleaf-spring5
- thymeleaf org.thymeleaf:thymeleaf-spring6
Weakness type
Related vulnerabilities
- CVE-2026-65591 — n8n before 1.123.64 Sanitizer Bypass Remote Code Execution
- CVE-2026-11561 — SSTI in Soagen Informatics' Apinizer
- CVE-2026-40985 — Data Binding Vulnerability in Spring Web Flow with Unified EL Parser
- CVE-2026-41729 — Spring Data REST SpEL Injection via Map Key in JSON Patch
- CVE-2026-41719 — Spring Data KeyValue - SpEL Injection vulnerability in SpelPropertyComparator
- CVE-2026-41717 — Spring Data MongoDB - SpEL Expression Injection via Annotated Query Parameter Binding
- CVE-2026-2586 — An authenticated Remote Code Execution (RCE) vulnerability was identified in GlassFish's...
- CVE-2026-2587 — A critical Remote Code Execution (RCE) vulnerability was identified in the server-side template...