Read the docs

Restricted expression mode bypass in Thymeleaf template engine

Priority MEDIUM 45CWE-917Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00911 58th percentileScored 2026-11-30
Fix Fixed thymeleaf (thymeleaf): 3.1.6.RELEASEthymeleaf-spring5 (thymeleaf): 3.1.6.RELEASE+1 more product

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

VendorProductAffected versionsFixed inStatusSource
thymeleafthymeleafbefore 3.1.6.RELEASE3.1.6.RELEASEPatch availableCNA
thymeleafthymeleaf-spring5before 3.1.6.RELEASE3.1.6.RELEASEPatch availableCNA
thymeleafthymeleaf-spring6before 3.1.6.RELEASE3.1.6.RELEASEPatch availableCNA
  • 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

  1. 2026-11-24 Threatist record created from CVE-2026-136410
  2. 2026-11-24 CISA SSVC decision points changed
  3. 2026-11-24 Alias added: GHSA-xh7h-9cr4-vfvf
  4. 2026-11-25 Affected versions changed · Red Hat
  5. 2026-11-25 CVSS score added · Red Hat
  6. 2026-11-25 Affected versions changed · Red Hat
  7. 2026-11-26 Affected versions changed · Red Hat

References

  • 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