Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-40477
Published:April 17, 2026
Updated:April 25, 2026
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.
Affected Packages
org.thymeleaf:thymeleaf-spring6 (JAVA):
Affected version(s) >=3.1.0.M1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
org.thymeleaf:thymeleaf-spring6 (JAVA):
Affected version(s) >=3.1.0.M1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
org.thymeleaf:thymeleaf-spring5 (JAVA):
Affected version(s) >=3.0.3.M1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
org.thymeleaf:thymeleaf (JAVA):
Affected version(s) >=1.0.0-beta1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
org.thymeleaf:thymeleaf (JAVA):
Affected version(s) >=m1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
org.thymeleaf:thymeleaf-spring5 (JAVA):
Affected version(s) >=3.0.3.M1 <3.1.4.RELEASE
Fix Suggestion:
Update to version 3.1.4.RELEASE
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
Improper Neutralization of Special Elements Used in a Template Engine
EPSS
Base Score:
0.05