CRITICAL 9.0

CVE-2026-136410

Thymeleaf before 3.1.6.RELEASE Restricted Expression Mode Bypass via Expression Objects

Description

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.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.thymeleaf » thymeleaf
< 3.1.6.RELEASE
3.1.6.RELEASE
org.thymeleaf » thymeleaf-spring5
< 3.1.6.RELEASE
3.1.6.RELEASE
org.thymeleaf » thymeleaf-spring6
< 3.1.6.RELEASE
3.1.6.RELEASE

Blast radius

3affected artifacts
122affected versions
4,056dependent artifacts (est.)
162,154dependent versions

100% of the dependent artifacts (4,056) still pull an affected version in their latest release.

DepthDependent versions
Direct
19,773
2 hops
40,232
3 hops
48,084
4 hops
34,055
5 hops
13,272
6 hops
6,738

Most used dependents

Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.