CVE-2026-40477: Vulnerability in Thymeleaf

Critical. 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...

Maven, CWE-917, CWE-1336

Exploitation
None confirmed
Severity
9 of 10
Attack likelihood
1 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-r4v4-5mwr-2fwr
EU ID
EUVD-2026-23571
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-917, CWE-1336
Published
15 Apr 2026
Last change
26 Oct 2026
Likelihood rank
Higher than 61 % of all rated vulnerabilities
Analysis status
Modified
Ecosystem
Maven

Affected products

Affected versions and the first fixed release

  • Thymeleaf Before 3.1.4. Fixed in 3.1.4

Affected packages

Vulnerable version ranges and fixed releases

  • org.thymeleaf:thymeleaf Maven, Affected through 3.1.3.RELEASE. Fixed in 3.1.4.RELEASE
  • org.thymeleaf:thymeleaf-spring5 Maven, Affected through 3.1.3.RELEASE. Fixed in 3.1.4.RELEASE
  • org.thymeleaf:thymeleaf-spring6 Maven, Affected through 3.1.3.RELEASE. Fixed in 3.1.4.RELEASE

Advisories

Vendor and security advisories

Related