9.1

CVE-2026-40477: Improper restriction of the scope of accessible objects in Thymeleaf expressions

KEV
Modified
AliasesGHSA-r4v4-5mwr-2fwr
Published 17-04-2026Last modified 17-08-2026

Vulnerability summary

CVE-2026-40477 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 0.87% chance of exploitation in the next 30 days, higher than 59.5% 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
0.87%
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. 17-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 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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.87%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

Decrease -0.08 pp

From 0.94% 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