Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Thymeleaf Restricted Expression Bypass (CVE-2026-136410)

CVE-2026-136410 is a restricted expression mode bypass in Thymeleaf through 3.1.5.RELEASE.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
2 min read
CVE ID
CVE-2026-136410
Vendor
Thymeleaf
Affected Product
Thymeleaf, thymeleaf-spring5 and thymeleaf-spring6
Exploitation
Not confirmed
Published
2026-11-24

The flaw concerns expression objects whose accessible scope can allow actions normally forbidden in restricted mode. It matters when an application directly passes unvalidated user input into a Thymeleaf expression.The vendor says this can escalate an existing server-side template injection beyond restricted mode. The advisory does not say every Thymeleaf application is exposed or confirm a particular outcome such as remote code execution. Teams can use the Vulnerability Intelligence platform to organize CVE prioritization alongside application-specific exposure checks.

What it allows

How Does CVE-2026-136410 Bypass Restricted Mode?

Thymeleaf normally limits what an injected expression can do in certain restricted contexts. The vendor says some accessible expression objects were scoped too broadly, so those limits could be bypassed. The attacker still needs an application path that inserts unvalidated user input directly into an expression.

The CVE record identifies restricted contexts including preprocessing, unescaped output, event handlers, fragment names and TEXT templates. These examples guide a defensive review; the record does not establish that each application uses them unsafely. Trace untrusted input from controllers or templates into expression construction, then prioritize reachable paths.

The 24 November 2026 CISA KEV catalog snapshot did not list the CVE.

Who is affected

Which Thymeleaf Versions and Applications Are Affected?

The vendor lists org.thymeleaf:thymeleaf, org.thymeleaf:thymeleaf-spring5 and org.thymeleaf:thymeleaf-spring6 through 3.1.5.RELEASE as affected. For each package, 3.1.6.RELEASE is the patched version. Exposure requires an application to pass unvalidated user input directly into Thymeleaf expressions.

Inventory the resolved Maven dependency and the version packaged with each deployed application. Review where untrusted input reaches expression construction, especially in the restricted contexts named by the CVE record. Record both findings in a vulnerability management process before prioritizing remediation.

Because the vendor gives an upper bound rather than a branch-by-branch lower bound, compare package versions manually against 3.1.6.RELEASE. Use a patch management process to confirm that the rebuilt application actually includes the fixed dependency.

Timeline

  1. 2026-11-08

    Thymeleaf published GHSA-2wmw-5fmc-m25v and identified 3.1.6.RELEASE as the patched version.

  2. 2026-11-24

    VulnCheck published CVE-2026-136410 with CVSS 4.0 and 3.1 assessments.

  3. 2026-11-24

    The CISA KEV catalog snapshot did not list CVE-2026-136410.

What to do

  1. Identify reachable expression paths

    Find applications using the three named Maven artifacts. Trace unvalidated user input into Thymeleaf expressions and prioritize reachable paths in restricted contexts.

  2. Upgrade all affected packages

    Update thymeleaf, thymeleaf-spring5 and thymeleaf-spring6 to 3.1.6.RELEASE or a later fixed release where used. Rebuild and redeploy the affected application.

  3. Verify the deployed version

    Inspect the resolved dependency tree and the artifact running in production after deployment. Confirm each relevant Thymeleaf package reports 3.1.6.RELEASE or a later fixed version.

  4. Remove unsafe input flow

    Stop passing unvalidated user input directly into template expressions. Review affected template paths as a code-level control alongside the version update.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-136410 affect every Thymeleaf application?

No. The vendor describes a prerequisite: an application directly passes unvalidated user input into Thymeleaf expressions. Review that input flow and the installed package version.

Which version fixes CVE-2026-136410?

The Thymeleaf advisory lists 3.1.6.RELEASE as patched for thymeleaf, thymeleaf-spring5 and thymeleaf-spring6. Confirm the resolved version in the deployed application.

Does the advisory confirm remote code execution?

The vendor describes an escalation of template injection beyond restricted mode. It does not claim a confirmed remote code execution outcome for every affected application.

Does the severity score prove exploitation?

No. CVSS measures severity under its stated assumptions. A severity score does not prove that this CVE has been exploited.

Sources

  1. Improper Restriction of the Scope of Specific Potentially Harmful Objects in Thymeleaf ExpressionsThymeleaf
  2. CVE-2026-136410 RecordVulnCheck via CVE Program
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →