Thymeleaf before 3.1.6.RELEASE Restricted Expression Mode Bypass via Expression Objects
NIST has received this entry but not started reviewing it.
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.
Improper Neutralization of Special Elements used in an Expression Language Statement CWE-917
The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 3 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Thymeleaf Thymeleaf | Software | from 0, before 3.1.6.RELEASE | 3.1.6.RELEASE |
| Thymeleaf Thymeleaf-spring5 | Software | from 0, before 3.1.6.RELEASE | 3.1.6.RELEASE |
| Thymeleaf Thymeleaf-spring6 | Software | from 0, before 3.1.6.RELEASE | 3.1.6.RELEASE |
The 9.5 severity score (critical) from vulncheck.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Setup needed on the target | Present | The target has to be set up in a particular way. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Other systems: data exposed | High | Total loss of confidentiality in other systems the vulnerable one connects to: everything they hold can be read. |
| Other systems: data changed | High | The attacker can change or delete anything in other systems the vulnerable one connects to. |
| Other systems: service disrupted | High | The attacker can take down other systems the vulnerable one connects to. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 3 sources for this flaw, none tagged as a vendor patch.