9.1

CVE-2026-40478: Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf

KEV
Modified
AliasesGHSA-xjw8-8c5c-9r79
Published 17-04-2026Last modified 18-08-2026

Vulnerability summary

CVE-2026-40478 is a critical (CVSS 9.1) vulnerability in Thymeleaf. It is known to be exploited: ENISA lists it, first on 10-10-2026. EPSS estimates a 1.12% chance of exploitation in the next 30 days, higher than 67% of scored vulnerabilities.

Priority
Act nowlisted as exploited

Listed as exploited by ENISA (10-10-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.12%
0%100%
Low · -0.08 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 17-04-2026
    PublishedVulnerability first disclosed.
  2. 18-08-2026
    Last modifiedVulnerability information updated.
  3. 10-10-2026
    Added to ENISA KEVExploitedAdded to the ENISA known exploited vulnerabilities catalog.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

1.12%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

Decrease -0.08 pp

From 1.20% on 22-10-2026

22-10-202621-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNWListed
Added
10-10-2026
CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Org.thymeleaf3 products
  • thymeleaf< 3.1.4.RELEASE
  • thymeleaf-spring5< 3.1.4.RELEASE
  • thymeleaf-spring6< 3.1.4.RELEASE
Thymeleaf3 products
  • org.thymeleaf:thymeleaf-spring5< 3.1.4.RELEASE
  • org.thymeleaf:thymeleaf-spring6< 3.1.4.RELEASE
  • thymeleaf< 3.1.4.RELEASE | < 3.1.4

2 vendors · 6 products

References

7 links