Expression Language Injection Affecting org.thymeleaf:thymeleaf-spring6 package, versions [,3.1.6.RELEASE)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.91% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Expression Language Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGTHYMELEAF-22958500
  • published25 Nov 2026
  • disclosed24 Nov 2026
  • creditLHeiakim,Daniel Birtwhistle

Introduced: 24 Nov 2026

NewCVE-2026-136410  (opens in a new tab)
CWE-917  (opens in a new tab)

How to fix?

Upgrade org.thymeleaf:thymeleaf-spring6 to version 3.1.6.RELEASE or higher.

Overview

Affected versions of this package are vulnerable to Expression Language Injection in the Conversions class (the #conversions expression utility), whose convert method loads any class by name and passes it to the conversion service without applying the type restrictions of the restricted expression execution mode. An attacker who can inject into an expression that the application evaluates in restricted mode can instantiate types that the mode forbids by naming them as conversion targets, escalating the injection beyond the limits restricted mode enforces. Exploitation requires the application to pass unvalidated input into an expression evaluated in restricted mode, such as preprocessing, th:utext, template or fragment names, or TEXT template mode. The impact is highest in Spring integrations (thymeleaf-spring5, thymeleaf-spring6), where conversion is delegated to the application's Spring ConversionService.

CVSS Base Scores

version 4.0
version 3.1