Actively exploited vulnerability / CVE-2026-40478
Thymeleaf: a flaw can let outsiders take control of a web application
A flaw in Thymeleaf lets an unauthenticated remote attacker bypass the library's protections and make the server run unauthorized instructions, when the application passes user input to Thymeleaf without checking it. For a business this can mean exposed data, access to internal systems or a disrupted application. The flaw is on the list of vulnerabilities used in real attacks kept by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2026-40478 · EUVD-2026-23573
- Severity
- Critical (9/10)
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 1.3% (FIRST's estimate for the next 30 days)
Does it concern you?
Thymeleaf is a software component developers use to build pages in Java web applications. You may have it if your company runs a website, portal or internal application built in Java, by your own team or a supplier.
The version is not shown in a normal menu, so ask your development team or application supplier whether they use Thymeleaf and which version. Versions 3.1.3.RELEASE and all earlier ones are affected.
Affected products and versions
- Thymeleaf
- thymeleaf: before 3.1.4
What to do
Ask your team or supplier to update Thymeleaf to version 3.1.4.RELEASE or later. It is also worth confirming that the application does not pass unchecked user input to Thymeleaf.
Versions that contain the fix: 3.1.4.
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. Versions 3.1.3.RELEASE and prior contain a security bypass vulnerability in the the expression execution mechanisms. Although the library provides mechanisms to prevent expression injection, it fails to properly neutralize specific syntax patterns that allow for the execution of unauthorized expressions. 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.
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.