CVSS 3.1
9.0 criticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HCritical (9.0) in thymeleaf thymeleaf. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.thymeleaf:thymeleaf 3.1.4.RELEASE.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:Horg.thymeleaf:thymeleaf (Maven): fixed in 3.1.4.RELEASEorg.thymeleaf:thymeleaf-spring5 (Maven): fixed in 3.1.4.RELEASEorg.thymeleaf:thymeleaf-spring6 (Maven): fixed in 3.1.4.RELEASEExplain CVE-2026-40478 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40478?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40478?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40478 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| thymeleaf:thymeleaf | before 3.1.4 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xjw8-8c5c-9r79 | Maven | org.thymeleaf:thymeleaf | <3.1.4.RELEASE | 3.1.4.RELEASE |
| GHSA-xjw8-8c5c-9r79 | Maven | org.thymeleaf:thymeleaf-spring5 | <3.1.4.RELEASE | 3.1.4.RELEASE |
| GHSA-xjw8-8c5c-9r79 | Maven | org.thymeleaf:thymeleaf-spring6 | <3.1.4.RELEASE | 3.1.4.RELEASE |
Red Hat rates this Important.
The vulnerability arises when unvalidated user input is directly passed to the Thymeleaf template engine. To mitigate this, application developers should implement robust input validation and sanitization for all user-supplied data before it is processed by the Thymeleaf template engine. This ensures that malicious expressions cannot be executed.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Dev Spaces 3.28 | devspaces/openvsx-rhel9:1779528224 | Fixed 2026-05-28 | RHSA-2026:21772 |
| Red Hat OpenShift Dev Spaces 3.28 | devspaces/pluginregistry-rhel9:1779359423 | Fixed 2026-05-28 | RHSA-2026:21772 |
| Red Hat build of Apache Camel for Spring Boot 4 | camel-thymeleaf | Not affected | |
| Red Hat build of Apache Camel for Spring Boot 4 | thymeleaf | Not affected | |
| Red Hat Fuse 7 | thymeleaf | Will not fix | |
| Red Hat JBoss Enterprise Application Platform 7 | smallrye-mutiny-vertx-web-templ-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform 7 | thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform 7 | vertx-web-templ-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | smallrye-mutiny-vertx-web-templ-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | vertx-web-templ-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | smallrye-mutiny-vertx-web-templ-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | spring-boot-starter-thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | thymeleaf | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | thymeleaf-extras-java8time | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | thymeleaf-spring5 | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | vertx-web-templ-thymeleaf | Not affected | |
| Red Hat Single Sign-On 7 | spring-boot-starter-thymeleaf | Will not fix | |
| Red Hat Single Sign-On 7 | thymeleaf | Affected | |
| Red Hat Single Sign-On 7 | thymeleaf-extras-java8time | Will not fix | |
| 1 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40478.
Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.