Actively exploited vulnerability / CVE-2026-41901
Thymeleaf: an attacker could run code on the server behind your web application
A flaw in Thymeleaf lets attackers get around the safeguards meant to block dangerous expressions when an application passes unfiltered user data to it. This can let an attacker run code on the server, putting your data and the application itself at risk. It is on the list of vulnerabilities used in real attacks kept by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2026-41901 · EUVD-2026-29872
- Severity
- Critical (9/10)
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 0.5% (FIRST's estimate for the next 30 days)
Does it concern you?
Thymeleaf is a component developers use to build the pages of web applications written in Java. Your company may have it if it runs a website, portal or internal application built in Java, often with Spring.
All versions before 3.1.5.RELEASE are affected. Ask your development team or application supplier which Thymeleaf version they use; it is listed in the project's dependencies.
What to do
Have Thymeleaf updated to version 3.1.5.RELEASE or later and the application redeployed. Also ask that user input be checked before it reaches the generated pages.
The official description
The text below is the description from the public database.
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.
Sources
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.