Template Injection Affecting org.thymeleaf:thymeleaf package, versions [,3.1.4.RELEASE)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 IDSNYK-JAVA-ORGTHYMELEAF-16078372
  • published16 Apr 2026
  • disclosed15 Apr 2026
  • creditThomas Reburn

Introduced: 15 Apr 2026

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

How to fix?

Upgrade org.thymeleaf:thymeleaf to version 3.1.4.RELEASE or higher.

Overview

Affected versions of this package are vulnerable to Template Injection due to the TemplateEngine's improper restriction of accessible object scope during expression evaluation. An attacker can inject into sensitive objects to execute unauthorized actions.

CVSS Base Scores

version 4.0
version 3.1