CVE-2026-40478: 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 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...
Maven, CWE-917, CWE-1336
- Exploitation
- None confirmed
- Severity
- 9 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-xjw8-8c5c-9r79
- 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
- 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
- github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79
- access.redhat.com/errata/RHSA-2026:21772
- access.redhat.com/security/cve/CVE-2026-40478
- bugzilla.redhat.com/show_bug.cgi
Related
- Thymeleaf vulnerabilities Recent advisories, watch this product