cybersecurity Request an audit

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.

Other exploited vulnerabilities in Thymeleaf

What you can do next

Request an audit

Find out what you expose, before someone else does.

Tell us who you are, confirm by email, and we will call you. Nothing is checked until you agree.

  1. You confirm by email, then we call you within two working days to understand your company and what should be checked.
  2. You get a fixed quote and a permission form that says exactly what we may test, and when.
  3. We do the work in the window you chose, and keep you posted.
  4. You get the report and a walkthrough call, then one retest of its findings within 30 days.

Only systems you own or may have checked / written permission first

Request an audit

No passwords or access details here. We ask for what we need after you sign the permission form.

After you send this, we email you a link to confirm it. We contact you only after you confirm.