Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach app endpoint reflecting input into expression
-
DeliveryCraft payload targeting restricted context
-
ExploitAbuse improperly scoped expression object
-
ExecutionBypass restricted execution mode
-
ImpactEscalate SSTI to forbidden actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Expression language sanitization
|
| Exploitation Conditions | Exploitation is NOT possible against a default, unmodified Thymeleaf install on its own. The required precondition, stated by the GHSA advisory, is that the application directly passes unvalidated user input into Thymeleaf expressions located in specific restricted contexts - namely preprocessing, th:utext, th:on* event handlers, fragment names, or TEXT templates. In those contexts restricted execution mode normally contains the injection; this flaw lets the restriction be bypassed via improperly scoped expression objects. Limiting factors: the vulnerable version range is thymeleaf/thymeleaf-spring5/thymeleaf-spring6 <= 3.1.5.RELEASE; the app must already contain an SSTI sink feeding user input into an expression; and the CVSS AC:H/AT:P metrics indicate specific, attacker-non-trivial conditions must hold rather than a universally reliable trigger. No authentication is required (PR:N) and no user interaction is needed (UI:N). |
| Impact | This is a genuine high-priority issue, and the signals mostly align. The vuln.today decision label is act_now, the flaw is a restricted-expression-mode bypass in Thymeleaf (a very widely deployed Java template engine), and the CVSS 4.0 base score is 9.5 with full high vulnerable- and subsequent-system impact (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H). However, the same vector tempers raw urgency: AC:H and AT:P mean exploitation is not trivially universal - it depends on specific preconditions rather than firing against any default install. Critically, the vulnerability is not a self-contained RCE: per the GHSA advisory it only matters when an application 'directly passes unvalidated user input into Thymeleaf expressions,' i.e. the app must already contain a template-injection sink that was previously contained by restricted mode; this bug lets that contained injection escalate. No EPSS score, KEV listing, or working-exploit evidence is present in the input, so there is no confirmation of active exploitation or automatable mass-scanning - the priority rests on the vendor/VulnCheck act_now assessment and the severity of the impact once the precondition is met, not on observed in-the-wild use. Net: treat as urgent to patch for anyone running Thymeleaf <= 3.1.5.RELEASE that feeds user input into expressions, but the real-world blast radius is gated by whether such an injection point exists. |
| Exploit ScenarioDerived | An application already passes unvalidated user input into a Thymeleaf expression located in a restricted context (preprocessing, th:utext, a th:on* handler, a fragment name, or a TEXT template), relying on restricted execution mode to contain the resulting SSTI. An unauthenticated remote attacker crafts input that reaches an improperly scoped expression object, bypassing the restricted-mode limits and escalating the contained injection into forbidden server-side actions. No public exploit identified at time of analysis; AC:H/AT:P indicate the attack requires specific conditions rather than a simple one-shot request. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Thymeleaf's restricted execution mode can be bypassed in versions up to and including 3.1.5.RELEASE (thymeleaf, thymeleaf-spring5, thymeleaf-spring6), letting an injection that should have been contained escalate into full server-side template injection. The flaw only matters where an application already passes unvalidated user input into expressions in restricted contexts such as preprocessing, th:utext, th:on* handlers, fragment names, or TEXT templates - the trigger is not described beyond that precondition, and it is not exploitable against a default Thymeleaf install on its own. Rated 9.5 with AC:H/AT:P in CVSS 4.0 (assessed CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H), unauthenticated and requiring no user interaction; no public exploit code or CISA KEV entry is present in the supplied data, and no EPSS score was provided.
RemediationAI
Vendor-released patch: upgrade to Thymeleaf 3.1.6.RELEASE, which fixes all three artifacts (org.thymeleaf:thymeleaf, org.thymeleaf:thymeleaf-spring5, org.thymeleaf:thymeleaf-spring6) - see https://github.com/thymeleaf/thymeleaf/releases/tag/thymeleaf-3.1.6.RELEASE and the advisory https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-2wmw-5fmc-m25v. The vendor states no workaround is available beyond ensuring applications do not pass unvalidated user input directly to the template engine, and strongly recommends upgrading to 3.1.6.RELEASE in any case; this is the only complete fix. Because the priority decision is act_now, treat the upgrade as urgent for any application that builds expressions from request data - inventory uses of preprocessing, th:utext, th:on* handlers, dynamic fragment names and TEXT templates, and remove or strictly validate user input reaching them as a stop-gap, understanding that the sandbox itself remains bypassable until the upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Thymeleaf is a Java server-side template engine (CWE-917, expression language injection; the advisory also tags CWE-1336, template engine injection). Its restricted execution mode is a sandbox intended to limit what an expression can do when an application embeds untrusted input into a template expression; this CVE shows that the scope restriction on specific accessible objects is insufficient, so those objects can be reached indirectly and used to perform actions forbidden in restricted mode. Because the root cause is expression-object scoping rather than a single parsing defect, the bypass applies across the three Maven artifacts (org.thymeleaf:thymeleaf, thymeleaf-spring5, thymeleaf-spring6) at versions <= 3.1.5.RELEASE. It is not a defect that fires against a stock install: per the GHSA, exploitation requires the application itself to pass unvalidated user input into expressions in restricted contexts - preprocessing, th:utext, th:on* event handlers, fragment names, or TEXT templates - where restricted mode normally contains the resulting SSTI. The CVSS 4.0 AC:H/AT:P metrics reflect that specific, non-trivial conditions must hold for a successful bypass rather than a universally reliable trigger; how exactly the scoping weakness is triggered is not described in the available sources.
Know when Thymeleaf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Remote and unauthenticated (AV:N/PR:N/UI:N); AC:H because it requires a pre-existing injection sink and specific restricted contexts; S:C as the engine bypass reaches the underlying server, with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
The bug is an expression-language injection restriction bypass, classified as CWE-917.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical vulnerability in Thymeleaf's restricted execution mode affects versions up to 3.1.5.RELEASE, enabling attackers to escalate injection attacks into full server-side template injection. Applications that pass unvalidated user input into Thymeleaf expressions are at risk, potentially leading to remote code execution and data compromise. Leadership should prioritize remediation due to the high impact on confidentiality and integrity, though no active exploitation has been observed.
No vendor-released patch identified at time of analysis. Interim mitigations include: enforcing strict input validation and output encoding for all user-supplied data used in Thymeleaf expressions, disabling restricted execution mode only if safe, segmenting affected applications, deploying WAF rules to detect template injection patterns, and conducting code reviews to eliminate untrusted input in expression contexts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to
Thymeleaf through 3.1.1.RELEASE, as used in spring-boot-admin (aka Spring Boot Admin) through 3.1.1 and other products,
EUVD-2026-134472
GHSA-xh7h-9cr4-vfvf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB