CVE-2026-40477Improper restriction of the scope of accessible objects in Thymeleaf expressions
Updated under an hour ago ()
Does this affect you?
It affects thymeleaf and 8 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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
- 9.1 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- Weakness (CWE)
- CWE-917, CWE-1336
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Modified
- Record last updated
- Aug 17, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
thymeleaf thymeleaf thymeleaf:thymeleaf (from the name) | before 3.1.4.RELEASE | CNA record |
thymeleaf org.thymeleaf:thymeleaf-spring5 thymeleaf:org.thymeleaf_thymeleaf_spring5 (from the name) | before 3.1.4.RELEASE | CNA record |
thymeleaf org.thymeleaf:thymeleaf-spring6 thymeleaf:org.thymeleaf_thymeleaf_spring6 (from the name) | before 3.1.4.RELEASE | CNA record |
Red Hat Red Hat OpenShift Dev Spaces 3.28 redhat:openshift_devspaces | from 1779528224 not affected | CISA ADP |
Red Hat Red Hat build of Apache Camel for Spring Boot 4 redhat:camel_spring_boot | 4 | CISA ADP |
Red Hat Red Hat Fuse 7 redhat:jboss_fuse | 7 | CISA ADP |
Red Hat Red Hat JBoss Enterprise Application Platform 7 redhat:jboss_enterprise_application_platform | 7 | CISA ADP |
Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack redhat:jbosseapxp | All versions | CISA ADP |
Red Hat Red Hat Single Sign-On 7 redhat:red_hat_single_sign_on | 7 | CISA ADP |
thymeleaf thymeleaf thymeleaf:thymeleaf | before 3.1.4 | NVD |
References
- https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-r4v4-5mwr-2fwrx-refsource-confirm, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/security/cve/CVE-2026-40477
- https://bugzilla.redhat.com/show_bug.cgi?id=2459344
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40477.json
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.