Restricted expression mode bypass in Thymeleaf template engine
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-917.
Summary
The thymeleaf, thymeleaf-spring5 and thymeleaf-spring6 packages are affected before 3.1.6.RELEASE. Improperly scoped expression objects let restricted expression mode be bypassed (CWE-917). An unauthenticated remote attacker can perform forbidden actions by injecting input into restricted contexts such as preprocessing, th:utext, th:on* handlers, fragment names or TEXT templates, escalating server-side template injection.
Written with Claude Haiku 5.5 from the sources below · 2026-11-26
Description from the CNA
Thymeleaf before 3.1.6.RELEASE contains a restricted expression mode bypass vulnerability that allows unauthenticated remote attackers to perform forbidden actions through improperly scoped expression objects. Attackers can inject input into restricted contexts like preprocessing, th:utext, th:on* handlers, fragment names, or TEXT templates to escalate server-side template injection.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| thymeleaf | thymeleaf | before 3.1.6.RELEASE | 3.1.6.RELEASE | Patch available | CNA |
| thymeleaf | thymeleaf-spring5 | before 3.1.6.RELEASE | 3.1.6.RELEASE | Patch available | CNA |
| thymeleaf | thymeleaf-spring6 | before 3.1.6.RELEASE | 3.1.6.RELEASE | Patch available | CNA |
- thymeleaf Vendorthymeleaf Affected before 3.1.6.RELEASE Fixed in 3.1.6.RELEASE Patch available CNA
- thymeleaf-spring5 Vendorthymeleaf Affected before 3.1.6.RELEASE Fixed in 3.1.6.RELEASE Patch available CNA
- thymeleaf-spring6 Vendorthymeleaf Affected before 3.1.6.RELEASE Fixed in 3.1.6.RELEASE Patch available CNA
Remediation
Upgrade thymeleaf, thymeleaf-spring5 and thymeleaf-spring6 to 3.1.6.RELEASE. CISA requires U.S. federal agencies to fix known exploited vulnerabilities by the due date.
Written with Claude Haiku 5.5 from the sources below · 2026-11-26
- Fix · CNA thymeleaf (thymeleaf) Fixed in 3.1.6.RELEASE
- Fix · CNA thymeleaf-spring5 (thymeleaf) Fixed in 3.1.6.RELEASE
- Fix · CNA thymeleaf-spring6 (thymeleaf) Fixed in 3.1.6.RELEASE
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Fuse 7
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Dev Spaces
- Red Hat Single Sign-On 7
- Red Hat build of Apache Camel for Spring Boot 4
Timeline
- 2026-11-24 Threatist record created from CVE-2026-136410
- 2026-11-24 CISA SSVC decision points changed
- 2026-11-24 Alias added: GHSA-xh7h-9cr4-vfvf
- 2026-11-25 Affected versions changed · Red Hat
- 2026-11-25 CVSS score added · Red Hat
- 2026-11-25 Affected versions changed · Red Hat
- 2026-11-26 Affected versions changed · Red Hat
References
More thymeleaf vulnerabilities
- TI-2023-19687 Thymeleaf through 3.1.1.RELEASE, as used in spring-boot-admin (aka Spring Boot Admin)… CVSS 3.1HIGH 7.5
- TI-2021-19390 In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in… CVSS 3.1CRITICAL 9.8
- TI-2026-29229 Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf CVSS 3.1CRITICAL 9.1
- TI-2026-29228 Improper restriction of the scope of accessible objects in Thymeleaf expressions CVSS 3.1CRITICAL 9.1
- TI-2026-30303 Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions CVSS 3.1CRITICAL 9.0
Sources
- CVE-2026-136410 · CVE Program
- CVE-2026-136410 · NVD
- FIRST EPSS
- GHSA-xh7h-9cr4-vfvf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-136410 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences