Skip to main content

Thymeleaf EUVDEUVD-2026-134472

| CVE-2026-136410 CRITICAL
Improper Neutralization of Special Elements used in an Expression Language Statement (CWE-917)
2026-11-24 VulnCheck GHSA-xh7h-9cr4-vfvf
9.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app endpoint reflecting input into expression
  2. Delivery
    Craft payload targeting restricted context
  3. Exploit
    Abuse improperly scoped expression object
  4. Execution
    Bypass restricted execution mode
  5. Impact
    Escalate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

thymeleaf 0 <3.1.6.RELEASE
thymeleaf-spring6 0 <3.1.6.RELEASE
thymeleaf-spring5 0 <3.1.6.RELEASE

Affected Packages

euvd thymeleaf fix: 3.1.6.RELEASE
euvd thymeleaf_spring5 fix: 3.1.6.RELEASE
euvd thymeleaf_spring6 fix: 3.1.6.RELEASE

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

Vendor (VulnCheck) PRIMARY 9.5 CRITICAL
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
vuln.today AI 9.0 CRITICAL

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat 9.0 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Nov 24, 2026 - 20:19 EUVD
CVE Published
Nov 24, 2026 - 18:45 cve.org
CRITICAL 9.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.9%
Top 42% exploitable
Prevalence
High
Widely deployed Java/Spring Boot server-side template engine
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy